Liking cljdoc? Tell your friends :D

supabase.core.json

Platform JSON seam for the Supabase SDK.

All JSON encoding/decoding in supabase.core goes through this namespace so the same code runs on both platforms:

  • JVM — jsonista (Jackson), keywordized keys.
  • ClojureScript — js/JSON with js->clj keywordization.

Both sides decode object keys to keywords and throw on malformed input; callers that want lenient parsing should use read-string-safe.

Platform JSON seam for the Supabase SDK.

All JSON encoding/decoding in `supabase.core` goes through this
namespace so the same code runs on both platforms:

  - **JVM** — jsonista (Jackson), keywordized keys.
  - **ClojureScript** — `js/JSON` with `js->clj` keywordization.

Both sides decode object keys to keywords and throw on malformed
input; callers that want lenient parsing should use [[read-string-safe]].
raw docstring

read-stringclj/s

(read-string s)

Decodes a JSON string, keywordizing object keys. Throws on malformed input.

Decodes a JSON string, keywordizing object keys. Throws on malformed
input.
sourceraw docstring

read-string-safeclj/s

(read-string-safe s)

Best-effort JSON decode. Returns the raw input unchanged on parse failure or when the input is not a string.

Best-effort JSON decode. Returns the raw input unchanged on parse
failure or when the input is not a string.
sourceraw docstring

write-stringclj/s

(write-string x)

Encodes x as a JSON string.

Encodes `x` as a JSON string.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close