toml-node icon indicating copy to clipboard operation
toml-node copied to clipboard

dump api

Open fundon opened this issue 8 years ago • 7 comments

json => toml file

fundon avatar Nov 11 '15 11:11 fundon

We are effectively talking about a toml.stringify(object) type of syntax, right?

andyfleming avatar Aug 09 '16 02:08 andyfleming

It's still impossible to convert json into toml ?

felixsanz avatar Nov 24 '16 16:11 felixsanz

There's toml-stream and json2toml.

kenany avatar Nov 24 '16 16:11 kenany

I'm interested in taking the AST and returning that to TOML so that comments are preserved.

docwhat avatar Jun 27 '18 19:06 docwhat

@docwhat JSON doesnt support comments. What comments are you preserving?

kyeotic avatar Aug 29 '19 19:08 kyeotic

JSONC eg https://www.npmjs.com/package/jsonc-parser

Sent with GitHawk

docwhat avatar Aug 29 '19 20:08 docwhat

Ok, but thats not JSON. Thats a custom format that adds comments to JSON.

kyeotic avatar Aug 29 '19 20:08 kyeotic