Skip to content

Multiline JSON doesn't multiline #328

Answered by jordanbtucker
henke443 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your interest in JSON5. However, the reason you're having problems with multiline strings is because JSON5 doesn't support multiline strings. It does support multiline comments, though.

As far as the documentation for reviver and replacer, the API is identical to JSON's and works in the same way. reviver is called after each value is parsed while replacer is called before each value is stringified.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@henke443
Comment options

@jordanbtucker
Comment options

Answer selected by jordanbtucker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #327 on April 12, 2023 21:00.