java - How to modify values of JsonObject / JsonArray directly? -


Once I have provided a JSON string in the GSOn, then the JsonObject class provides (assuming I Do not want to parse any meaningful data objects, but want to use Jason OBaze strictly), how can I modify the field / value of a key directly?

I do not want an API that can help me

Strangely, to continue adding the answer property back, I was expecting a setter method for half: system

  System.out.println ( "Before:" + obj.get ("DebugLogId")); // Original "02352" obj.addProperty ("DebugLogId", "YYY"); System.out.println ("After:" + obj.get ("DebugLogId")); // now "YYY"    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -