renderjson
renderjson copied to clipboard
Render JSON into collapsible HTML
Close #40 ### Guides: - [Pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) - [ECMAScript 6 modules: the final](https://2ality.com/2014/09/es6-modules-final.html) - [jQuery ES6 example](https://gist.github.com/mgol/af95c1358d4ca9f2d45db4f0c55a74a4) ### Open points: - [ ] update `bower.json` file
e.g. renderjson.set_indentation(2); // adjust space-count or renderjson.set_indentation(' '); // allow tabs or spaces or renderjson.set_indentation('space', 2); // self-explanatory or... infinite number of ways to implement this, please consider it.
Added ES6 export, can be used like: `import renderjson from 'renderjson`
When text with new lines folded it draws `\n\r` as new lines  But when it unfolded it prints those escape codes as it is  Clearly it must be...
I decide to implement #42 by myself. It was not hard :slightly_smiling_face: I added `set_key_surronud_symbol` function to API. It accepts string and wrappes keys around it: ```javascript renderjson.set_key_surround_symbol('"'); renderjson(data) //...
Hi. Thank you for this amazing tool. I'd like to have ability to customize or remove quotes from JSON keys. I though I can do it with `replacer` function, but...
Is there a way to use set_replacer to make links in the tree clickable?
This is not a bug but rather a feature request. When a JSON is rendered, it will be great if the code could scan and if it finds a string...