Skip to content

how to define json-lines response? #2707

Closed Answered by handrews
Skeeve asked this question in Q&A
Discussion options

You must be logged in to vote

Not automatically. There would need to be a mapping defined to the JSON lines media type, and tools would need to support it. There's no reason you can't just treat it as an array of objects and just document that it's a series of lines rather than a JSON array, but that would only work for human-readable documentation.

It's not clear to me what advantage JSON Lines has over RFC 7464 JSON Text Sequences.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Skeeve
Comment options

Answer selected by Skeeve
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
Labels
None yet
2 participants