-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nray-output.json is malformatted JSON #20
Comments
You're right, it is rather JSONL than JSON, see https://jsonlines.org/ I also use |
Well this makes sense. Thanks for the clarification. Is there any way to "announce" this in the (default) filename itself, e.g. by its extension? Is there a well-known |
Honestly I never did a deep dive on the topic.
Technically nothing prevents you from giving your output another file extension, it's a setting in the config file. The documentation may be more clear on this topic, I'll take this feedback with me and try to come up with improvements the next time working on the code base. I'll leave the ticket open until then, thanks for your feedback! |
Example nray-output.json
Each line of the file has it's own JSON document, which for some reason makes sense, but this is a characteristic of a log file, not a JSON file. It is therefore unparsable for external software.
Is it possible that you add enclosing JSON array brackets to the file so that it can be parsed as JSON?
The text was updated successfully, but these errors were encountered: