@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    4
    • latest

Version History

Package Sidebar

Install

npm i @ts-common/json-parser

Weekly Downloads

4,519

Version

1.1.0

License

MIT

Unpacked Size

47.1 kB

Total Files

8

Last publish

Collaborators

  • lirenhe
  • billytrend
  • vladbarosan
  • sergeyshandar