Commit Graph
100 Commits
Author SHA1 Message Date
Benoît Blanchon 7e4ab9f31c Added code size 2014-07-23 13:45:07 +02:00
Benoît Blanchon 44e5549456 Added code size 2014-07-23 13:29:56 +02:00
Benoît Blanchon 3e36831cdc Updated README.md 2014-07-23 12:56:42 +02:00
Benoît Blanchon 5129f3400c Added key() and value() shortcuts 2014-07-23 12:56:29 +02:00
Benoît Blanchon 0449ee4fd3 Updated README.md 2014-07-23 12:14:59 +02:00
Benoît Blanchon 0d4d77a7cd Updated example 2014-07-17 14:02:51 +02:00
Benoît Blanchon c329572d24 Added JsonArrayIterator (tests are failing) 2014-07-17 13:58:30 +02:00
Benoît Blanchon ca01ecfb49 Added a flag to ignore deprecation warnings 2014-07-17 13:27:40 +02:00
Benoît Blanchon 78249a0ada Updated example 2014-07-17 13:23:32 +02:00
Benoît Blanchon 45c9ba1191 Renamed JsonObjectBase into JsonPrintable 2014-07-17 13:16:14 +02:00
Benoît Blanchon 5e1697f47b JsonArray is now a simple wrapper on top of JsonValue 2014-07-17 13:12:12 +02:00
Benoît Blanchon f2579397d6 JsonHashTable is now a wrapper on to of JsonValue 2014-07-17 12:59:26 +02:00
Benoît Blanchon b6e3a37ad9 Added JsonParserBase::parse() that returns a JsonValue 2014-07-17 12:37:35 +02:00
Benoît Blanchon 6164328892 Renamed JsonArray::getLength() into size() to match std::vector 2014-07-16 14:01:04 +02:00
Benoît Blanchon 7487b8cbb7 Defined the DEPRECATED macro 2014-07-16 13:53:56 +02:00
Benoît Blanchon 6a868e46bd Made JsonValue inherit from JsonObjectBase 2014-07-16 13:42:36 +02:00
Benoît Blanchon d189bd7140 Added class JsonValue.
Added subscript operator on JsonArray and JsonHashTable
2014-07-16 13:26:11 +02:00
Benoît Blanchon 41b5bba939 Updated CHANGELOG.md 2014-07-15 13:50:49 +02:00
Benoît Blanchon 7ac4a91591 Added include of JsonParserBase.cpp 2014-07-15 12:56:14 +02:00
Benoît Blanchon 5534635feb Fixed case of jsmn.cpp (issue #6) 2014-07-15 12:54:01 +02:00
Benoît Blanchon 25c428c1e9 Removed useless cast 2014-07-09 13:44:11 +02:00
Benoît Blanchon 0045bb3e35 Reduced the size of JsonArrayBase::printTo() by 18 bytes 2014-07-09 13:40:09 +02:00
Benoît Blanchon 4e61a839a5 Minor changes 2014-07-09 13:30:08 +02:00
Benoît Blanchon a48fbac7d7 Reduced the size of EscapedString::printTo() by 4 more bytes 2014-07-09 13:19:12 +02:00
Benoît Blanchon af7dd55d34 Reduced the size of EscapedString::printTo() by 4 bytes 2014-07-09 13:16:10 +02:00
Benoît Blanchon 525649c416 Reduced the size of EscapedString::printTo() by 26 bytes 2014-07-09 12:59:49 +02:00
Benoît Blanchon 1f86016320 Extracted function getSpecialChar() 2014-07-09 12:50:03 +02:00
Benoît Blanchon 0a0757945e Reduced the size of JsonHashTableBase::printTo() by 12 bytes 2014-07-08 13:49:35 +02:00
Benoît Blanchon e63cde3922 Reducted the size of JsonHashTableBase::printTo() by 18 bytes ! 2014-07-08 13:46:34 +02:00
Benoît Blanchon 5bb6cd0fa9 Extracted class JsonArrayBase to reduce code size 2014-07-08 13:38:37 +02:00
Benoît Blanchon bbc18b5ca4 Extracted class JsonHashTableBase to reduce the size of the code. 2014-07-08 13:27:29 +02:00
Benoît Blanchon 6fcf9edf9a Updated README.md 2014-07-07 16:23:54 +02:00
Benoît Blanchon bb11fcba89 Updated the example. 2014-07-07 16:22:43 +02:00
Benoît Blanchon a87b2bf5bf Adde EscapedString to the cpp files 2014-07-07 16:21:34 +02:00
Benoît Blanchon f28997e367 Added a work around for Arduino 1.0.5 2014-07-07 16:21:19 +02:00
Benoît Blanchon 42968be535 Updated type sizes 2014-07-07 14:07:24 +02:00
Benoît Blanchon 6c1ab912ff Added namespace ArduinoJson::Internals for private types 2014-07-07 14:05:41 +02:00
Benoît Blanchon 99521cc718 Removed default template value for DIGITS, because Arduino 1.0.5 refused it 2014-07-07 13:59:31 +02:00
Benoît Blanchon b3613f7137 Use EscapedString for keys in JsonHashTable 2014-07-07 13:48:50 +02:00
Benoît Blanchon 1b62502b36 Extracted class EscapedString 2014-07-07 13:38:35 +02:00
Benoît Blanchon adb8fa4d44 Set a default value for DIGITS 2014-07-07 13:28:31 +02:00
Benoît Blanchon 3b6ce65054 Reduced the size of JsonValue to 6 bytes ! 2014-07-07 13:27:12 +02:00
Benoît Blanchon be6c4bf4d1 Number of digits is now a template parameter 2014-07-07 13:24:14 +02:00
Benoît Blanchon 50b2a1b4a7 Added namespace for the parser 2014-07-03 14:01:45 +02:00
Benoît Blanchon 78a920a5fc Now use #pragma once 2014-07-03 13:58:08 +02:00
Benoît Blanchon bae5c36f41 Added namespace 2014-07-03 13:55:38 +02:00
Benoît Blanchon 538b15b400 Updated Arduino example 2014-07-03 13:48:11 +02:00
Benoît Blanchon daba65d987 Added overload to add() to specify the double precision 2014-07-03 13:45:53 +02:00
Benoît Blanchon 5b1c2047a4 Renamed Print::write() into print() 2014-07-03 13:38:58 +02:00
Benoît Blanchon 81c7b9f700 Can now set the double value precision. 2014-07-03 13:35:39 +02:00
Benoît Blanchon 2222714d68 Moved sprintf() calls to Print.cpp 2014-07-03 13:21:40 +02:00
Benoît Blanchon dd5cf661e3 Moved Print::write() implementation into Print.cpp 2014-07-03 12:55:53 +02:00
Benoît Blanchon b560a87e15 Change unit tests relying on floating point precision 2014-07-03 12:54:41 +02:00
Benoît Blanchon 4d4d775e7a Renamed private method 2014-07-03 12:41:22 +02:00
Benoît Blanchon 9bcb5610e8 Updated the changelog 2014-07-02 13:59:13 +02:00
Benoît Blanchon cb0973ab38 Updated Arduino example 2014-07-02 13:54:39 +02:00
Benoît Blanchon c7fb77203b Replace C++11 syntax that what not supported by the Arduino IDE 2014-07-02 13:49:23 +02:00
Benoît Blanchon e87bde6594 Added a JsonValue constructor for float 2014-07-02 13:46:25 +02:00
Benoît Blanchon 922b131f8d Splitted the special char tests 2014-07-02 13:24:33 +02:00
Benoît Blanchon ae73a06328 Extracted class StringBuilderTests 2014-07-02 13:16:44 +02:00
Benoît Blanchon 61e53a505d Added a test that stores an integer in a JsonValue 2014-07-02 13:06:38 +02:00
Benoît Blanchon 937837848c Added a test that stores a long in a JsonValue 2014-07-02 13:02:28 +02:00
Benoît Blanchon 1fba9767d3 Renamed private methods 2014-07-02 12:54:22 +02:00
Benoît Blanchon 621068260d Renamed union members 2014-07-02 12:52:22 +02:00
Benoît Blanchon e8831c28d9 Added JsonGenerator example for Arduino 2014-07-01 14:08:15 +02:00
Benoît Blanchon a9b8e280fe Moved implementation is a new folder 2014-07-01 13:50:54 +02:00
Benoît Blanchon 4d5a7114c1 Added interface Printable. 2014-07-01 13:44:36 +02:00
Benoît Blanchon c3359d3eb9 Renamed JsonSink into Print 2014-07-01 13:36:22 +02:00
Benoît Blanchon c84860e3f4 Renamed JsonSink::append() into write() to match Arduino's Print class 2014-07-01 13:33:00 +02:00
Benoît Blanchon 1401665129 Added tests of writeTo() return value 2014-07-01 13:29:54 +02:00
Benoît Blanchon 19e007c3f5 Added tests of writeTo() return value 2014-07-01 13:25:21 +02:00
Benoît Blanchon 88f630cee5 Added tests on returned value. 2014-07-01 13:20:47 +02:00
Benoît Blanchon a57220debc Changed JsonSink to match Arduino's Print class 2014-07-01 13:15:50 +02:00
Benoît Blanchon 69d682ce81 Extracted interface JsonSink. 2014-06-30 19:19:39 +02:00
Benoît Blanchon 81f7849c26 Got rid of the switch/case in JsonValue 2014-06-30 18:37:54 +02:00
Benoît Blanchon 10068e7b22 Added a test of an empty hash table in a hash table 2014-06-30 12:49:12 +02:00
Benoît Blanchon 5b2ee9ed29 Added a test of an empty array in a hash 2014-06-30 12:47:53 +02:00
Benoît Blanchon 93ddb9498e Added tests that adds a boolean to a hash table 2014-06-27 13:59:11 +02:00
Benoît Blanchon 495efd8629 Added a test that adds a null in a hash table 2014-06-27 13:57:06 +02:00
Benoît Blanchon f548093d86 Added a test of one number in a hash table 2014-06-27 13:54:51 +02:00
Benoît Blanchon 5f77949636 Added a test of one string over hash table's capacity 2014-06-27 13:53:55 +02:00
Benoît Blanchon e26cea59e5 Added a test with two strings in a hash table 2014-06-27 13:52:01 +02:00
Benoît Blanchon 1800a8e89e Added a test of a nested hash table in an array 2014-06-27 13:49:03 +02:00
Benoît Blanchon 1d064d709b Removed the overloads of add() by using a templated type 2014-06-27 13:45:50 +02:00
Benoît Blanchon b7933f85ba Renamed addItem() to add() 2014-06-27 13:43:26 +02:00
Benoît Blanchon 0240270492 Extracted class JsonValue 2014-06-27 13:42:26 +02:00
Benoît Blanchon dd8baea373 Fixed the failing tests 2014-06-27 13:24:10 +02:00
Benoît Blanchon 568b8988d8 Renamed private members 2014-06-27 13:18:38 +02:00
Benoît Blanchon 4f4b35bd41 Small refactoring of the tests 2014-06-27 13:09:52 +02:00
Benoît Blanchon ff4060f5d1 Added a test that adds a string value in a hash 2014-06-27 13:07:38 +02:00
Benoît Blanchon ebb257df6e Added a test of an empty hashtable 2014-06-27 13:00:27 +02:00
Benoît Blanchon 48a91a219c Moved writeTo to JsonObjectBase 2014-06-26 13:39:05 +02:00
Benoît Blanchon e75e3b6527 Delete empty file 2014-06-26 13:30:18 +02:00
Benoît Blanchon 63ae9ef096 Moved floating point formatting to StringBuilder 2014-06-26 13:28:42 +02:00
Benoît Blanchon 33508e3fe0 Minor simplifications 2014-06-26 13:18:28 +02:00
Benoît Blanchon 1c4d4bfd2d Added a test with a NULL string 2014-06-26 13:16:22 +02:00
Benoît Blanchon 18587d132b Added a test with a NULL string 2014-06-26 13:14:09 +02:00
Benoît Blanchon d12e25bd8a Added a test with special chars 2014-06-26 13:10:52 +02:00
Benoît Blanchon 25118ad8c0 Added a test class for StringBuilder.appendEscaped() 2014-06-26 13:05:49 +02:00
Benoît Blanchon 7ab728e996 Added a test that appends a string longer that the capacity of the builder 2014-06-26 13:00:14 +02:00