Code example for JsonParser

Methods: parse

0
			IOException, InterruptedException { 
		final String url = "market/options/strikes.json?symbol=" + symbol;
		final SyncRequest request = new SyncRequest(url, client);
 
		final String response = request.send();
		final JsonObject rootResponse = (JsonObject) jsonParser.parse(response);
		return rootResponse.getAsJsonObject("response")
				.getAsJsonObject("prices").getAsJsonArray("price");
	} 
 
	public JsonArray getOptionExpirationDates(final String symbol)
			throws OAuthMessageSignerException, 
			OAuthExpectationFailedException, OAuthCommunicationException, 
			IOException, InterruptedException { 
		final String url = "market/options/expirations.json?symbol=" + symbol;
		final SyncRequest request = new SyncRequest(url, client);
 
		final String response = request.send();
		final JsonObject rootResponse = (JsonObject) jsonParser.parse(response);
		return rootResponse.getAsJsonObject("response")
Connect your IDE to all the code out there  Get Codota for Java