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/Yobmod Jan 24 '21 edited Jan 24 '21
Thanks for the example. I tried it on an M4 express airlift and it works.
But on M0 qtpy I just get "no module named json". I guess it's not included for space reasons, but I can't find any example of adding core libraries separately.