Clojush icon indicating copy to clipboard operation
Clojush copied to clipboard

JSON datafiles are malformed?

Open Vaguery opened this issue 10 years ago • 1 comments

For some reason, the JSON logs I've been working with are comprised of multiple Array objects, which I'm pretty sure is a violation of the spec. I'm seeing:

[
  {individual},
  {individual},
  ...
  {individual}
],
[
  {individual},
  {individual},
  ...
  {individual}
],
... and so on

In other words, it has the structure [1,2,3],[4,5,6]..., which can't be parsed by any of the readers I've come across. These expect a single root object.

Can this please be wrapped in square brackets so it's a valid object? That said, see the subsequent issue, which is a request for a more rational structure.

Vaguery avatar Feb 21 '15 21:02 Vaguery

I will work on fixing this, and extract and refactor the JSON-writing code as well.

Vaguery avatar Feb 22 '15 15:02 Vaguery