Skip to content
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

Error when formatting multiple JSON objects #96

Open
rennerg opened this issue Jan 22, 2021 · 1 comment
Open

Error when formatting multiple JSON objects #96

rennerg opened this issue Jan 22, 2021 · 1 comment
Assignees

Comments

@rennerg
Copy link

rennerg commented Jan 22, 2021

Would it be possible to have this plugin support multiple JSON objects? To illustrate, the plugin cannot handle this:

{"@timestamp":"2021-01-07T15:42:18.0187523+00:00","level":"Information","messageTemplate":"Sending HTTP request {HttpMethod} {Uri}","message":"Sending HTTP request "POST" http://workflow-manager/v1/WorkflowDefinitions/name/WD-contouring-process/instances","fields":{"HttpMethod":"POST","Uri":"http://workflow-manager/v1/WorkflowDefinitions/name/WD-contouring-process/instances","EventId":{"Id":100,"Name":"RequestStart"},"SourceContext":"System.Net.Http.HttpClient.IWorkflowDefinitionsClient.ClientHandler","Scope":["HTTP POST http://workflow-manager/v1/WorkflowDefinitions/name/WD-contouring-process/instances"]}}
{"@timestamp":"2021-01-07T15:42:18.0965985+00:00","level":"Information","messageTemplate":"Received HTTP response after {ElapsedMilliseconds}ms - {StatusCode}","message":"Received HTTP response after 77.8249ms - Created","fields":{"ElapsedMilliseconds":77.8249,"StatusCode":"Created","EventId":{"Id":101,"Name":"RequestEnd"},"SourceContext":"System.Net.Http.HttpClient.IWorkflowDefinitionsClient.ClientHandler","HttpMethod":"POST","Uri":"http://workflow-manager/v1/WorkflowDefinitions/name/WD-contouring-process/instances","Scope":["HTTP POST http://workflow-manager/v1/WorkflowDefinitions/name/WD-contouring-process/instances"]}}

The "Show JSON Viewer" is only able to parse the first object in the viewer. The "Format JSON" just throws a parsing error and formats nothing.

Could this be a quick enhancement?

@CanyonCasa
Copy link

FYI, for interested parties this is referred to as streaming JSON. More info at...
https://en.wikipedia.org/wiki/JSON_streaming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants