-
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
Bug! JSON output text strings should use double quotes, not single #11
Comments
@Chewie9999 Oh... thanks... I'll fix it! |
@Chewie9999 Sorry! I want to make this python driver to return all status with $ python -c "from tsmppt60_driver import *; import json; print(json.dumps(SystemStatus('192.168.1.20').get()))" | jq '."Battery Voltage"'
{
"group": "Battery",
"value": 28.6,
"unit": "V"
} |
That's fine with me! I've not started using it in other programs yet. Thank you! |
I just tried to parse the output with "jq", and it doesn't like single quotes around the text strings.
According to the JSON Specification, they should be double quotes.
This is probably something I can fix myself easily, I just thought I should let you know.
Thanks!
The text was updated successfully, but these errors were encountered: