I want to create a markdown file which includes a js
object.
I want to add commentaries which are stored in an other object to each line.
The output should look like this:
{
"a": "test, //commentary1
"b": "test2" //commentary2
}
My first intention was to rewrite the stringify
function, but it's a bit tricky for edge cases.
How can I achieve this functionality in more better way?