Download Gson jar file
PropertyModel[] response; // Model Class
Gson gson = new Gson(); //Gson Object
InputStream source = null ;
//output JSON String
source = new ByteArrayInputStream(output.getBytes());
Reader reader = new InputStreamReader(source);
response = gson.fromJson(reader, PropertyModel[].class);
0 comments:
Post a Comment