From faac0a78987c7d0d831dcb88d3299e8a4ca7e804 Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:53:45 +0200 Subject: [PATCH] Add docs/JSON.md from Claro v1.17.26 zip --- docs/JSON.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/JSON.md diff --git a/docs/JSON.md b/docs/JSON.md new file mode 100644 index 0000000..f407195 --- /dev/null +++ b/docs/JSON.md @@ -0,0 +1,20 @@ +# JSON in Claro + +## Parse JSON text +```claro +PARSE JSON myText AS value +``` + +If JSON is invalid, Claro reports the character offset and a short snippet near the error. + +## Make JSON text +```claro +MAKE JSON value AS text +``` + +### Pretty JSON +```claro +MAKE JSON PRETTY value AS text +``` + +Pretty output is easier to read for config files and debugging.