@std/json

Getting Started

No install step: the module ships inside the compiler. Import what you need:

.rnx
import { JSON } from "@std/json";

Quickstart

Copy this into a file or open it straight in the playground:

.rnx
import { JSON } from "@std/json";


print(JSON.stringify(JSON.parse("12345")));
print(JSON.stringify(JSON.parse(""hello world"")));
let obj = JSON.parseObject("{"count": 41}");
print(obj.get("count"));