JSON.prune icon indicating copy to clipboard operation
JSON.prune copied to clipboard

A pruning version of JSON.stringify, allowing for example to stringify window or any big or recursive object

Results 7 JSON.prune issues
Sort by recently updated
recently updated
newest added

I have a question about this library license. My question is about the package.json file, I've notice there's a license type named ISC that is different from what is displayed...

Standerted JSON.stringify allows an argument for \t and \n for indentation purposes as follows: ``` JSON.stringify({ uno: 1, dos: 2 }, null, '\t'); // returns the string: // '{ //...

A complex structure can show the highest level item as 'pruned' forcing one to sift through the json atring to find the one unpruned source. Example: https://jsonblob.com/bf90de6d-caf5-11e7-8bfc-27c198b81400 In the example,...

enhancement

If the library is loaded many time may cause trouble when try to define a property many time. This modification skip to define the `Date.prototype.toPrunedJSON` if is already defined.

It doesn't work on a complex object. Check out the object: _viewer.navigation.getCamera(); in the page: http://developer-autodesk.github.io/viewer-javascript-debugger.tool/ The output will be the same as using JSON.stringify but it shouldn't be.

```JS class MyClass { get value() { return "wow" } }; const myClass = new MyClass(); console.log(JSON.prune(myClass)); // empty object {} ```

Hi, first of all thanks for maintaining this project 🙏 While using `json-prune` with a custom `replacer`, I noticed that there’s no way to tell the difference between a real...