@flying-dice/tslua-rxi-json
TypeScript icon, indicating that this package has built-in type declarations

0.30.0 • Public • Published

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" }

Readme

Keywords

Package Sidebar

Install

npm i @flying-dice/tslua-rxi-json

Weekly Downloads

2

Version

0.30.0

License

ISC

Unpacked Size

15.9 kB

Total Files

8

Last publish

Collaborators

  • jonathanturnock