You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is two valid JSON objects, the whole result isn't a valid JSON object. This makes it difficult to parse the output with many JSON libraries, including python's json.loads.
Hey,
When you run a command like "hue -j lights 1,2" the output looks like this:
While this is two valid JSON objects, the whole result isn't a valid JSON object. This makes it difficult to parse the output with many JSON libraries, including python's
json.loads
.Two options that might make it easier to handle:
Something like:
Something like:
While it's still technically invalid, it's at least easy to split the file on newlines.
The text was updated successfully, but these errors were encountered: