You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great if you can add a few missing methods:
JsonObject/JsonArray: clear() -> empty the container, similar to Collection.clear()
JsonArray: addAt() -> insert an element at a defined index, similar to List addAt()
Would also help to have a JsonPrimitive get() that doesn't do any check, but just returns the raw value (Boolean, Number or String)
These are easy, non breaking add-ons that can simplify some code :-)
The text was updated successfully, but these errors were encountered:
#2225 has added the methods JsonArray.asList and JsonObject.asMap so it is at least now possible to use clear() and addAt (respectively add(int, JsonElement)) on the List and Map views from these methods.
Would be great if you can add a few missing methods:
JsonObject/JsonArray: clear() -> empty the container, similar to Collection.clear()
JsonArray: addAt() -> insert an element at a defined index, similar to List addAt()
Would also help to have a JsonPrimitive get() that doesn't do any check, but just returns the raw value (Boolean, Number or String)
These are easy, non breaking add-ons that can simplify some code :-)
The text was updated successfully, but these errors were encountered: