Code example for JsonParser

	private DefaultHttpClient httpclient = new DefaultHttpClient();
	private Gson gson = new Gson();
	private JsonParser parser = new JsonParser(); 
	private final String[] platforms = { "android", "ios", "blackberry",
			"symbian", "webos" }; 
	private final Map<String, String> extensionMap = new HashMapExtension();
	public PhonegapAPIHelper() { 
	public void getBuildError(int id, String platform) throws NamingException,
			IllegalStateException, IOException { 
		if (!Arrays.asList(platforms).contains(platform)) {
			throw new NamingException("unsupported platfom :" + platform);
Connect your IDE to all the code out there  Get Codota for Java