Code example for JsonParser

Methods: parse

0
				url = new URL("http://cse190.myftp.org:8080/cse190/createUser?email=" + email + "&password=" + password + "&username=" + username
						  + "&first_name=" + firstname + "&last_name=" + lastname);
				uc = url.openConnection();
				data = new BufferedReader(new InputStreamReader(uc.getInputStream()));
				String inputLine = data.readLine();
				JsonParser parser = new JsonParser();
				return (JsonObject) parser.parse(inputLine);
 
			} catch (Exception e) {
				//No Connection 
				return null; 
			} 
		} 
 
	} 
}