DefinitelyTyped/types/json3/json3-tests.ts
2018-05-07 09:20:26 -07:00

6 lines
152 B
TypeScript

import * as JSON3 from "json3";
const obj = JSON3.parse('{ "a" : { "b" : [1, 2] } }');
const str = JSON3.stringify(obj, null, "\t");
console.log(str);