Interface JsonObjectCore<JVC extends JsonValueCore<JVC>>

Type Parameters:
JVC - the type of a JSON implementation wrapper
All Superinterfaces:
Iterable<Map.Entry<String,JVC>>, Jsonable, JsonObjectBase<JVC>, JsonSource, JsonValueBase<JVC>, JsonValueCore<JVC>
All Known Implementing Classes:
GsonJsonObject, JacksonJsonObject, JakartaJsonObject, OrgJsonObject

public interface JsonObjectCore<JVC extends JsonValueCore<JVC>> extends JsonObjectBase<JVC>, JsonValueCore<JVC>
JsonObjectCore extends JsonObjectBase, JsonValueCore and adds few methods to make it mutable.
Author:
Wei-Ming Wu
  • Method Details

    • set

      void set(String name, JsonSource jsonSource)
      Sets an element by given field name and JsonSource.
      Parameters:
      name - a field name
      jsonSource - a JsonSource
    • remove

      boolean remove(String name)
      Removes an element by given field name.
      Parameters:
      name - a field name
      Returns:
      true if an element removed, false otherwise