4 ms·
I've been recommended this library rather than figuring it for myself: https://github.com/yahoo/serialize-javascript https://github.com/yahoo/serialize-javascr
by andrewingram 7y ago
I've been recommended this library rather than figuring it for myself:
https://github.com/yahoo/serialize-javascript https://github.com/yahoo/serialize-javascript
You can use it in JSON mode like this: `serialize(obj, {isJSON: true});`