Sen descrición

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

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