-2

I have json string which looks like the following:

 "users":[
      {user_id=1,
       user_name=foo,
       profile_image=profile.png},
      {user_id=2,
       ............},
       .............
          ]

How can I convert it into a java arraylist of key,value pairs?

enu
  • 2,375
  • 2
  • 11
  • 12

1 Answers1

0
HashMap<String,Object> result =
    new ObjectMapper().readValue(JSON_SOURCE, HashMap.class);
vk1
  • 166
  • 6
  • 15