how to pass Json like this in Java -



how to pass Json like this in Java -

i have next json. please help me component java.

{ "result":{ "results":2, "tags":[ { "id":1, "name":"かわいい", "weight":34 }, { "id":4, "name":"すっぴん", "weight":12 } ] } }

please help!

create map called json.

create map called result , insert json, using key "result".

insert value 2 result, using key "results".

create list, phone call tags, , insert result using key "tags".

create map, phone call tagentry.

insert key/value pairs "id":1, "name":"かわいい", , "weight":34 tagentry

insert tagentry tags.

repeat lastly 3 steps sec tagentry value. (be sure create new tagentry map.)

serialize json json string.

(or did want go other way? if so, opposite.)

java json

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -