Class JSONElement

    • Field Detail

      • MAPPER

        protected static final transient kong.unirest.core.json.ToObjectMapper MAPPER
    • Method Detail

      • write

        public Writer write​(Writer sw,
                            int indentFactor,
                            int indent)
                     throws JSONException
        Write the JSON to a Writer with a pretty format due to limitations in GSON the index and indent are currently ignored
        Parameters:
        sw - the writer
        indentFactor - currently ignored
        indent - currently ignored
        Returns:
        the same Writer
        Throws:
        JSONException - for IO problems
      • query

        public Object query​(String query)
        query the object graph using JSONPointer https://tools.ietf.org/html/rfc6901
        Parameters:
        query - the pointer to get
        Returns:
        the thing you asked for
      • query

        public Object query​(JSONPointer query)
        query the object graph using JSONPointer https://tools.ietf.org/html/rfc6901
        Parameters:
        query - the pointer to get
        Returns:
        the thing you asked for