ndjson / ndjson-spec

Specification
680 stars 29 forks source link

Is ndjson file support comment / remark #30

Closed jasper2virtual closed 2 years ago

jasper2virtual commented 6 years ago

sometime we may need to skip some data temporary. can ndjson file be comment line by line. for example , {"data":"one","visible":true} // skip me {"data":"two","visible":false} {"data":"three","visible":true}

bradisbell commented 5 years ago

This isn't supported by JSON, and therefore should not be supported in ND-JSON, in my opinion.

danm commented 5 years ago

Also agree. Maybe speak to the JSON5 group about a NDJSON5 ?

olibre commented 4 years ago

One way to manage comments in JSON, is to use a key "comment" (you may use another key name).

{"data":"one","visible":true}
{"comment":{"data":"two","visible":false},"msg":"skip me"}
{"data":"three","visible":true}