@ts-common/json-parser
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

JSON Parser

Build Status

JSON Parser with a source map.

Next Design

type TrackedJsonCommon = {
  // ...position, directives, raw value, kind, etc...
}

type TrackedJsonObject = {
  kind: "object"
  readonly properties: StringMap<TrackedJson>
} & TrackedJsonCommon

type TrackedJsonArray = {
  kind: "array"
  readonly items: ReadonlyArray<TrackedJson>
} & TrackedJsonCommon

type TrackedJsonPrimitive = {
  kind: "string"|"number"|"null"|"boolean"
} & TrackedJsonCommon

type TrackedJson = TrackedJsonObject|TrackedJsonArray|TrackedJsonPrimitive

Readme

Keywords

Package Sidebar

Install

npm i @ts-common/json-parser

Weekly Downloads

7,201

Version

1.1.0

License

MIT

Unpacked Size

47.1 kB

Total Files

8

Last publish

Collaborators

  • lirenhe
  • billytrend
  • vladbarosan
  • sergeyshandar