설명 없음

Benoit Blanchon 4a8b7d0cb4 Updated code size 11 년 전
JsonGenerator 8e81b9bb26 Added JsonObjectBase::remove() 11 년 전
JsonGeneratorTests 8e81b9bb26 Added JsonObjectBase::remove() 11 년 전
JsonParser 44e5549456 Added code size 11 년 전
JsonParserTests abef85218e Renamed ARDUINO_JSON_NO_DEPRECATED_WARNING into ARDUINO_JSON_NO_DEPRECATION_WARNING 11 년 전
examples 4528b8fc95 Use operator[] in example (-68 bytes) 11 년 전
.gitignore 895482de15 Merged the two Visual Studio solutions into one 11 년 전
ArduinoJson.sln f565a9b1b7 Created a Visual Studio project for JsonGenerator 11 년 전
CHANGELOG.md 96c9b5deee Updated changelog. 11 년 전
JsonGenerator.cpp 6e4eb45210 Renamed JsonHashTable into JsonObject 11 년 전
JsonGenerator.h 6e4eb45210 Renamed JsonHashTable into JsonObject 11 년 전
JsonParser.cpp b75d32e980 Renamed JsonHashTable into JsonObject 11 년 전
JsonParser.h 3d8b31b1ec Moved all JsonParser code in a sub-folder. 11 년 전
README.md 4a8b7d0cb4 Updated code size 11 년 전
keywords.txt 6e4eb45210 Renamed JsonHashTable into JsonObject 11 년 전

README.md

Arduino JSON library

An elegant and efficient JSON library for embedded systems.

It's design to be very lightweight, 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 2642 Bytes 862 bytes
json-arduino dynamic no 3348 (+27%) not supported
aJson dynamic yes 5088 (+93%) 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 the [aJson and 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.

Related blog posts