How do I serialize a javascript object.
I’ve tried JSON.stringify, which is great, but it serializes into JSON, with quotes around all the keys.
I’m looking for something that’s not going to give me quotes around keys and still produce something readable, with padding.
Thanks.
I think you should look into YAML. We here use YAML, but let me look into it more, to see whether I can cite you some example.
Go through this stackoverflow discussion: Pure Javascript YAML library that supports both dump and load?