Class JsonGson

java.lang.Object
org.apache.jena.atlas.json.io.JsonGson

public class JsonGson extends Object
gson object mapping for the Jena JSON object model.

The TypeAdapter builds JsonValue objects directly from the gson token stream; there is no intermediate com.google.gson.JsonElement tree.

Reading only - JSON output is JSON.write(java.io.OutputStream, org.apache.jena.atlas.json.JsonValue).

  • Method Details

    • read

      public static JsonValue read(com.google.gson.stream.JsonReader jsonReader)
      Read one JSON value from the token stream, creating Jena JSON objects. The strictness of the JsonReader is left as set by the caller. Returns null for an empty token stream.