Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json to object gson

User user= gson.fromJson(jsonInString, User.class);

// where jsonInString is your json {"userId":"1","userName":"Yasir"}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #object #gson
ADD COMMENT
Topic
Name
3+1 =