Skip to content

Why is TOML.stringify() output different for equivalent JSON input? #27

Answered by LongTengDao
Leftium asked this question in Q&A
Discussion options

You must be logged in to vote

This library use WeakMap internal to remember object formats parsed by same library. For objects from JSON.parse or other way created, you may mark each object by helper functions provided by the library, because I didn't find a better way to know what coder want.

See details in docs: https://github.com/LongTengDao/j-toml/tree/master/docs/English#tomlsection-tomlinline-tomlmultiline-tomlmultilinearray-tomlmultilinebasic-tomlbasic-tomlliteral-tomlcommentfor-tomlcommentforthis-tomlissection-tomlisinline

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LongTengDao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants