Skip to main content

clojure.data.json

-

  • ->ReaderPBR

    Positional factory function for class clojure.data.json.ReaderPBR.

  • ->StringPBR

    Positional factory function for class clojure.data.json.StringPBR.

  • -write

    Print object to Appendable out as JSON

J

  • json-str

    DEPRECATED; replaced by 'write-str'. Converts x to a JSON-formatted string. Valid options are: :escape-unicode...

O

  • on-extra-throw

    Pass as :extra-data-fn to `read` or `read-str` to throw if data is found after the first object.

  • on-extra-throw-remaining

    Pass as :extra-data-fn to `read` or `read-str` to throw if data is found after the first object and return the remaini...

P

  • pprint

    Pretty-prints JSON representation of x to *out*. Options are the same as for write except :value-fn and :indent, which...

  • pprint-json

    DEPRECATED; replaced by 'pprint'. Pretty-prints JSON representation of x to *out*. Valid options are: :escape-...

  • print-json

    DEPRECATED; replaced by 'write' to *out*. Write JSON-formatted output to *out*. Valid options are: :escape-uni...

R

  • read

    Reads a single item of JSON data from a java.io.Reader. If you wish to repeatedly read items from the same reader, yo...

  • read-json

    DEPRECATED; replaced by read-str. Reads one JSON value from input String or Reader. If keywordize? is true (default...

  • read-str

    Reads one JSON value from input String. Options are the same as for read.

W

  • write

    Write JSON-formatted output to a java.io.Writer. Options are key-value pairs, valid options are: :escape-unicode...

  • write-json

    DEPRECATED; replaced by 'write'. Print object to PrintWriter out as JSON

  • write-str

    Converts x to a JSON-formatted string. Options are the same as write.