-
Notifications
You must be signed in to change notification settings - Fork 1
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
Stream is lacking outer { } if streamed object is an array #60
Comments
I can make this work in the frontend, it just doesn't seem right, not quite sure what the json standards say here, but I would prefer the full array. |
The import/export are complimentary so the name of an object isn't included, the data is just imported into the pre-existing object. We could add a parameter to the export methods to control output since the underlying JSON Printer can do this anyway via it's
I'll have a think. |
it's probably a result of what I'm using it for, which is a json over http API, in which case having the full json object is easiest to handle for the front end. |
A more general approach, especially for (4), is to use a |
I think the simplest option here is to extend
The We could also add an additional method to allow header/footer data to be attached. Probably leave that until we actually have a need for it. |
I've pushed a branch
|
only noticed this today, will test it asap |
I use the schema below to store application data.
The controllers array is filled by the firmware with controllers found using mDNS, I use the streaming method to pass it to the http API, but it turns out that the stream just sends the "naked" array, to be a correct json structure, I believe that it would have to be wrapped in
{}
code
result:
I think it would make sense to add the outer curlies, and the actual array name, so in my case the full
The text was updated successfully, but these errors were encountered: