Brak opisu

Ivan Kravets d38cbd374a Avoid trademark issues with library name 11 lat temu
JsonGenerator dae0dc5ebb Replaced old style casts (issue #28) 11 lat temu
JsonGeneratorTests dae0dc5ebb Replaced old style casts (issue #28) 11 lat temu
JsonParser c59ddd8a9d Fixed number of tokens (issue #29) 11 lat temu
JsonParserTests cc19266470 Added missing newline at end-of-file (issue #24) 11 lat temu
examples 2997a405a0 Added IndentedPrint example 11 lat temu
.gitignore 895482de15 Merged the two Visual Studio solutions into one 11 lat temu
ArduinoJson.sln f565a9b1b7 Created a Visual Studio project for JsonGenerator 11 lat temu
BuildArduinoPackage.sh 8e6fdb20eb Added tag in filename 11 lat temu
CHANGELOG.md feb6060887 Updated change-log 11 lat temu
FixEndOfFile.sh cc19266470 Added missing newline at end-of-file (issue #24) 11 lat temu
JsonGenerator.cpp cc19266470 Added missing newline at end-of-file (issue #24) 11 lat temu
JsonGenerator.h cc19266470 Added missing newline at end-of-file (issue #24) 11 lat temu
JsonParser.cpp cc19266470 Added missing newline at end-of-file (issue #24) 11 lat temu
JsonParser.h cc19266470 Added missing newline at end-of-file (issue #24) 11 lat temu
LICENSE.md 7a3fa35bd8 Added LICENSE.md 11 lat temu
README.md 84e34d2a27 Added content of issue #26 in the testimonials 11 lat temu
keywords.txt 6e4eb45210 Renamed JsonHashTable into JsonObject 11 lat temu
library.json d38cbd374a Avoid trademark issues with library name 11 lat temu

README.md

Arduino JSON library

An elegant and efficient JSON library for embedded systems.

It's design to have the most intuitive API, the smallest footprint and works without any allocation on the heap (no malloc).

It has been written with Arduino in mind, but it isn't linked to Arduino libraries so you can use this library in any other C++ project.

Features

Feature comparison

Library Memory allocation Nested objects Parser size Encoder size
Arduino JSON static yes 2760 Bytes 862 bytes
json-arduino dynamic no 3348 (+21%) not supported
aJson dynamic yes 5088 (+84%) 4678 (+540%)

"Parser size" was measured with a program parsing {"sensor":"outdoor","value":25.6}. For each library, I wrote a program that extracts a string and a float. I subtracted the size of a program doing the same without any JSON parsing involved. Source files are here.

"Encoder size" was measured with a program generating {"sensor":"outdoor","value":25.6}. Source files are here.

In each case the target platform was an Arduino Duemilanove and Arduino IDE 1.0.5 was used.

Links: json-arduino, aJson

Testimonials

From Arduino's Forum user jflaplante:

I tried aJson json-arduino before trying your library. I always ran into memory problem after a while. I have no such problem so far with your library. It is working perfectly with my web services.

From Arduino's Forum user gbathree:

Thanks so much - this is an awesome library! If you want to see what we're doing with it - the project is located at www.photosynq.org.

From StackOverflow user thegreendroid:

It has a really elegant, simple API and it works like a charm on embedded and Windows/Linux platforms. We recently started using this on an embedded project and I can vouch for its quality.

From GitHub user zacsketches:

Thanks for a great library!!! I've been watching you consistently develop this library over the past six months, and I used it today for a publish and subscribe architecture designed to help hobbyists move into more advanced robotics. Your library allowed me to implement remote subscription in order to facilitate multi-processor robots. ArduinoJson saved me a week's worth of time!!

Related blog posts