Code example for JsonParser

0
		} 
	} 
 
	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() { 
		super(); 
	} 
 
	public void getBuildError(int id, String platform) throws NamingException,
			IllegalStateException, IOException { 
		if (!Arrays.asList(platforms).contains(platform)) {
			throw new NamingException("unsupported platfom :" + platform);
		}