npm.io
21.0.39 • Published 2 weeks agoCLI

json10

Licence
MIT
Version
21.0.39
Deps
3
Size
384 kB
Vulns
0
Weekly
0
Stars
1

taon-json (json10)

  • Part of [taon.io](https://github.com/darekf77/
  • Helpers for OOP (Object Oriented Programming) in TypeScript.
  • JSON10 is a better version of well know JSON.
  • Purpose:
    • handle circural references in json objects
    • with JSON10 metadata you can stringify, parse circural objects
    • functionality similar to https://json5.org/, but with option to strinfify again to mix comments/json version

Usage

  • in taon isomorphic libs/apps or any NodeJS apps/libs:
import { JSON10 } from 'json10';
  • in any frontend browser apps (except taon lib/apps)
import { JSON10 } from 'json10/browser';

Use it instead JSON

JSON10.parse({})
JSON10.stringify({})