Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java parse json to class

Gson gson = new Gson(); // Or use new GsonBuilder().create();
MyType target2 = gson.fromJson(json, MyType.class); // deserializes json into target2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #parse #json #class
ADD COMMENT
Topic
Name
2+9 =