Home › Forums › TinyG › TinyG Support › JSON Parent and Name Defs
Tagged: JSON parse
- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by
Chris S.
-
AuthorPosts
-
October 10, 2018 at 2:42 pm #11150
Chris S
MemberI can’t believe I’m asking for help finding this because it HAS to be here on this site SOMEWHERE. I’m trying to parse the JSON return from the TinyG and am unable to find definition/table of all the Parent and Name definitions.
I’ve looked all over including here:
https://github.com/synthetos/TinyG/wiki/JSON-Operation
here: https://github.com/synthetos/TinyG/wiki/JSON-Details
and here: https://github.com/synthetos/TinyG/wiki/TinyG-Status-Codes
Here’s an example of what I’m trying to parse:
{“r”:{“fv”:0.970,”fb”:440.20,”hp”:1,”hv”:8,”id”:”7U4895-HUH”,”msg”:”SYSTEM READY”},”f”:[1,0,0,1521]}
I’ve figured out that:
“fv” = Firmware Version
“fb” = Firmware Build
“hp” = Hardware Platform
“hv” = Hardware Version
“id” = Identifier
“msg” = MessageBut I’d much rather just look at documentation and write my code the right way the first time.
Which would be a new thing for me on this project. 😉
October 10, 2018 at 3:15 pm #11151cmcgrath5035
ModeratorI speak conversational, not strict formal JSONese, so am wondering if there is a term for the specific info or document you are looking for.
Such as, if this was a database problem, “what is the schema for the database”. If a bad analogy, I apologize.As far as I can tell, for tinyG space the docs you reference above are what is available.
Does https://github.com/synthetos/TinyG/blob/edge-0.98/firmware/tinyg/json_parser.h provide any additional info?There is this for G2core:
https://github.com/synthetos/g2/wiki/JSON-Operation
which appears to be similar to tinyG on the surface.Assuming you still need more info, I suggest a query at
https://github.com/synthetos/TinyG/issues
where you will, in time, get the attention of the developers.Hope that helps
October 10, 2018 at 3:23 pm #11152Chris S
Member“JSONese”
Ha, that’s good. I’m going to use it. Schema is probably a decent comparison.
I think that your link to “json_parser.h” is pointing me in a direction that will work. I’ll probably post in the issues section too.
Thanks.
October 10, 2018 at 3:35 pm #11153Chris S
MemberOnce I slowed down and looked one more time I found the footer array definition in a table here:
https://github.com/synthetos/TinyG/wiki/JSON-Details
{[array_ID/version,status_code,RX_received,checksum]}
-
AuthorPosts
- You must be logged in to reply to this topic.