Skip to content

ts-common/json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

JSON Parser with a source map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published