import * as builtin from "./builtin" ; public export type JSON = string | number | boolean | null | JSON . Array | JSON . Object ; public export namespace JSON { export type Array = JSON [ ] ; export interface Object { [ key ] : JSON | undefined ; } export function parse ( value ) { return builtin . JSON . parse ( value ) ; } export function stringify ( value ) { return builtin . JSON . stringify ( value ) ; } }