java - How to convert String to JsonObject -


i using httprequest json web string.

it quite simple, cannot seem convert string javax.json.jsonobject.

how can this?

jsonreader jsonreader = json.createreader(new stringreader("{}")); jsonobject object = jsonreader.readobject(); jsonreader.close(); 

should trick. see docs , examples.


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -