Class JsonUtil

  • public class JsonUtil
    extends Object
    A utility class that provides useful methods when working with JSON data.
    • Constructor Detail

      • JsonUtil

        public JsonUtil()
    • Method Detail

      • createJsonReader

        public static javax.json.JsonReader createJsonReader​(InputStream input)
        Create a JsonReader from the specified InputStream. When the logging level for this class is set to Level.FINE, the JSON content of the InputStream will be written to a String and logged. Otherwise, it will just create a JsonReader from a basic InputStreamReader.
        input - the InputStream to read the JSON data from
        a JsonReader to read the data from the InputStream