org.apache.geode.experimental.driver

## Interface JSONWrapper

- All Superinterfaces:
    java.lang.Comparable<JSONWrapper>
  All Known Implementing Classes:
    JSONWrapper.JSONWrapperImpl

      @Experimental
      public interface JSONWrapper
      extends java.lang.Comparable<JSONWrapper>

  JSONWrapper is a holder of a JSON document. Use it to wrap your JSON document to store in Geode via the Region API. On the server the document will be stored in PDX serialized form, which is query-capable.

  For example,
  JSONWrapper wrapper = JSONWrapper.wrapJSON("{ \"name\", \"Xavier\", \"age\", \"35\"});
  region.put("key", wrapper);
  ...
  wrapper = region.get("key");
  String jsonDoc = wrapper.getJSON();

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `JSONWrapper.JSONWrapperImpl`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getJSON()`
    `static JSONWrapper` | `wrapJSON(java.lang.String jsonDocument)`

    - ### Methods inherited from interface java.lang.Comparable

      `compareTo`

- - ### Method Detail

    - #### wrapJSON

          static JSONWrapper wrapJSON(java.lang.String jsonDocument)

    - #### getJSON

          java.lang.String getJSON()