-
Notifications
You must be signed in to change notification settings - Fork 238
Open
Labels
Tech WritersIssues that a writer could help withIssues that a writer could help withType: BugSomething doesn't work how it shouldSomething doesn't work how it should
Description
The JSON is output is not really JSON, but JSON lines. Proper JSON would be enclosed in square brackets with each item in the array separated by commas. The JSON lines format just puts all objects on its own line.
The implication is that a little pre-processing needs to be done to be usable by something like node's readFile
. Jq could do it with jq -s '.' ./result.json > result-array.json
.
As I understand, JSON lines makes it possible to stream the output, so the output has advantages. But, the correct format should be documented in the JSON output page.
Related k6 issue: grafana/k6#737
Metadata
Metadata
Assignees
Labels
Tech WritersIssues that a writer could help withIssues that a writer could help withType: BugSomething doesn't work how it shouldSomething doesn't work how it should
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Document that json format is actually JSON lines format[/-][+]Document that JSON format is actually JSON lines format[/+]