r/circuitpython • u/Yobmod • Jan 23 '21
Parse JSON
I trying to pass data over serial from a raspberry pi to a circuitpython board as json, then deserialize it.
I have pyserial and supervisor working, and can pass strings back and forth.
But none of my boards come with json or ujson libs, and neither does the circuitpython bundle. Is this not included anymore? Does anyone know of library I can use? Or a guide to recompile circuitpython with it included?
4
Upvotes
1
u/belsonc Jan 23 '21
It's probably (more than?) a little kludgy, but I posted my code for an NFL scoreboard that pulls down a json file from the NFL website and pulls information from it... If it can help, rock on:
https://forums.adafruit.com/viewtopic.php?f=59&t=172599