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:
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]].
(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.
(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.
(write-string x)Encodes x as a JSON string.
Encodes `x` as a JSON string.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |