@flying-dice/tslua-rxi-json
v0.30.0
Published
rxi-json library with typings
Downloads
60
Readme
RXI Json for TypeScriptToLua
This repository contains TypeScript type definitions and the associated Lua code for the rxi/json library.
Installation
To use this library in your project, you need to have Node.js and npm installed. You can then install the type definitions via npm with the command
npm install @flying-dice/tslua-rxi-json
Usage
import * as json from "@flying-dice/tslua-rxi-json";
// Example of Encoding to String
const data = { hello: "world" };
const encoded = json.encode(data); // '{"hello":"world"}'
// Example of Decoding from String
const decoded = json.decode(encoded); // { hello: "world" }