Hi all -
I'm developing something that I'd like to run on both Ubuntu and Yocto Linux (on the Edison). I'm doing most of the dev work in Ubuntu.
I need to serialize and deserialize JSON objects.
If Edison has a native or default JSON library, I'd like to use that in Ubuntu also. Does Edison have JSON built in? What library is it? Does it come from Node.js?
- Dave Ferreira
what is your target programming language? If we know that we can recommend json parsers for you.
Parsers exist for every programming language I can think of.
NODE JS has a Json parser.
gcc has several json parsers.
Sorry, my bad. Interrupted by crying 4-yo.
WORKING IN C++ on both Edison (Yocto) and Ubuntu Linux.
What JSON library should I install on Ubuntu to match what's on the Edison. (So that same code will run on both with minimal massaging.)
- Dave F.
For the Intel Edison I do not use c++ I use NODE JS, however this tiny lightweight parser is easy to use. all you need to do is add the json11.cpp and json11.hpp file into your project.
Seeing that you are coding in c++ this json parser should compile on the Edison as well as the Raspberry Pi as well as any Linux Distro or Windows machine.
This is the one I use in my projects.
https://github.com/borisgontar/json11 GitHub - borisgontar/json11: C++11 class implementing JSON data interchange format.