Commit Graph

  • 42968be535 Updated type sizes Benoît Blanchon 2014-07-07 14:07:24 +02:00
  • 6c1ab912ff Added namespace ArduinoJson::Internals for private types Benoît Blanchon 2014-07-07 14:05:41 +02:00
  • 99521cc718 Removed default template value for DIGITS, because Arduino 1.0.5 refused it Benoît Blanchon 2014-07-07 13:59:31 +02:00
  • b3613f7137 Use EscapedString for keys in JsonHashTable Benoît Blanchon 2014-07-07 13:48:50 +02:00
  • 1b62502b36 Extracted class EscapedString Benoît Blanchon 2014-07-07 13:38:35 +02:00
  • adb8fa4d44 Set a default value for DIGITS Benoît Blanchon 2014-07-07 13:28:31 +02:00
  • 3b6ce65054 Reduced the size of JsonValue to 6 bytes ! Benoît Blanchon 2014-07-07 13:27:12 +02:00
  • be6c4bf4d1 Number of digits is now a template parameter Benoît Blanchon 2014-07-07 13:24:14 +02:00
  • 4e6ad31d6a Reduced the size of JsonValue by removing the pointer to instance methods. Benoit Blanchon 2014-07-06 21:34:46 +02:00
  • 1cec019457 Reduce the size of JsonValue by removing the virtual Benoit Blanchon 2014-07-06 21:28:39 +02:00
  • 2e97dbdedc Reduced the size of JsonValue by no implementing Printable Benoit Blanchon 2014-07-06 21:08:04 +02:00
  • 8f9d3b638f Removed content.asFloat Benoit Blanchon 2014-07-06 20:36:11 +02:00
  • 8be590e591 Added README.md Benoit Blanchon 2014-07-06 14:47:50 +02:00
  • 8baf21b6e8 Minor changes Benoit Blanchon 2014-07-05 21:39:56 +02:00
  • 935cb068ab Updated README.md Benoit Blanchon 2014-07-05 16:09:37 +02:00
  • efd8c0ff5c Improved the example Benoit Blanchon 2014-07-05 13:10:07 +02:00
  • 757c86ddc5 Simplified the example Benoit Blanchon 2014-07-05 13:09:46 +02:00
  • 0efe8bc74a Added encoder sizes Benoit Blanchon 2014-07-05 12:53:34 +02:00
  • 65d03c9001 Fixed table Benoit Blanchon 2014-07-04 19:15:19 +02:00
  • df2e640b16 Added README.md Benoit Blanchon 2014-07-04 19:11:04 +02:00
  • 895482de15 Merged the two Visual Studio solutions into one Benoit Blanchon 2014-07-04 14:48:18 +02:00
  • 477c9c2c6e Updated changelog Benoit Blanchon 2014-07-04 14:42:57 +02:00
  • 50b2a1b4a7 Added namespace for the parser Benoît Blanchon 2014-07-03 14:00:51 +02:00
  • 78a920a5fc Now use #pragma once Benoît Blanchon 2014-07-03 13:58:08 +02:00
  • bae5c36f41 Added namespace Benoît Blanchon 2014-07-03 13:54:27 +02:00
  • 538b15b400 Updated Arduino example Benoît Blanchon 2014-07-03 13:48:11 +02:00
  • daba65d987 Added overload to add() to specify the double precision Benoît Blanchon 2014-07-03 13:45:53 +02:00
  • 5b1c2047a4 Renamed Print::write() into print() Benoît Blanchon 2014-07-03 13:38:58 +02:00
  • 81c7b9f700 Can now set the double value precision. Benoît Blanchon 2014-07-03 13:35:39 +02:00
  • 2222714d68 Moved sprintf() calls to Print.cpp Benoît Blanchon 2014-07-03 13:21:40 +02:00
  • dd5cf661e3 Moved Print::write() implementation into Print.cpp Benoît Blanchon 2014-07-03 12:55:53 +02:00
  • b560a87e15 Change unit tests relying on floating point precision Benoît Blanchon 2014-07-03 12:54:41 +02:00
  • 4d4d775e7a Renamed private method Benoît Blanchon 2014-07-03 12:41:22 +02:00
  • 9bcb5610e8 Updated the changelog Benoît Blanchon 2014-07-02 13:59:13 +02:00
  • cb0973ab38 Updated Arduino example Benoît Blanchon 2014-07-02 13:54:39 +02:00
  • c7fb77203b Replace C++11 syntax that what not supported by the Arduino IDE Benoît Blanchon 2014-07-02 13:49:23 +02:00
  • e87bde6594 Added a JsonValue constructor for float Benoît Blanchon 2014-07-02 13:46:25 +02:00
  • 922b131f8d Splitted the special char tests Benoît Blanchon 2014-07-02 13:24:33 +02:00
  • ae73a06328 Extracted class StringBuilderTests Benoît Blanchon 2014-07-02 13:16:44 +02:00
  • 61e53a505d Added a test that stores an integer in a JsonValue Benoît Blanchon 2014-07-02 13:06:38 +02:00
  • 937837848c Added a test that stores a long in a JsonValue Benoît Blanchon 2014-07-02 13:02:28 +02:00
  • 1fba9767d3 Renamed private methods Benoît Blanchon 2014-07-02 12:54:22 +02:00
  • 621068260d Renamed union members Benoît Blanchon 2014-07-02 12:51:27 +02:00
  • e8831c28d9 Added JsonGenerator example for Arduino Benoît Blanchon 2014-07-01 14:08:15 +02:00
  • a9b8e280fe Moved implementation is a new folder Benoît Blanchon 2014-07-01 13:50:54 +02:00
  • 4d5a7114c1 Added interface Printable. Benoît Blanchon 2014-07-01 13:44:36 +02:00
  • c3359d3eb9 Renamed JsonSink into Print Benoît Blanchon 2014-07-01 13:36:22 +02:00
  • c84860e3f4 Renamed JsonSink::append() into write() to match Arduino's Print class Benoît Blanchon 2014-07-01 13:33:00 +02:00
  • 1401665129 Added tests of writeTo() return value Benoît Blanchon 2014-07-01 13:29:54 +02:00
  • 19e007c3f5 Added tests of writeTo() return value Benoît Blanchon 2014-07-01 13:25:21 +02:00
  • 88f630cee5 Added tests on returned value. Benoît Blanchon 2014-07-01 13:20:47 +02:00
  • a57220debc Changed JsonSink to match Arduino's Print class Benoît Blanchon 2014-07-01 13:15:50 +02:00
  • 69d682ce81 Extracted interface JsonSink. Benoît Blanchon 2014-06-30 19:19:39 +02:00
  • 81f7849c26 Got rid of the switch/case in JsonValue Benoît Blanchon 2014-06-30 18:37:54 +02:00
  • 10068e7b22 Added a test of an empty hash table in a hash table Benoît Blanchon 2014-06-30 12:48:55 +02:00
  • 5b2ee9ed29 Added a test of an empty array in a hash Benoît Blanchon 2014-06-30 12:47:53 +02:00
  • 93ddb9498e Added tests that adds a boolean to a hash table Benoît Blanchon 2014-06-27 13:59:11 +02:00
  • 495efd8629 Added a test that adds a null in a hash table Benoît Blanchon 2014-06-27 13:57:06 +02:00
  • f548093d86 Added a test of one number in a hash table Benoît Blanchon 2014-06-27 13:54:51 +02:00
  • 5f77949636 Added a test of one string over hash table's capacity Benoît Blanchon 2014-06-27 13:53:55 +02:00
  • e26cea59e5 Added a test with two strings in a hash table Benoît Blanchon 2014-06-27 13:52:01 +02:00
  • 1800a8e89e Added a test of a nested hash table in an array Benoît Blanchon 2014-06-27 13:49:03 +02:00
  • 1d064d709b Removed the overloads of add() by using a templated type Benoît Blanchon 2014-06-27 13:45:50 +02:00
  • b7933f85ba Renamed addItem() to add() Benoît Blanchon 2014-06-27 13:43:26 +02:00
  • 0240270492 Extracted class JsonValue Benoît Blanchon 2014-06-27 13:42:26 +02:00
  • dd8baea373 Fixed the failing tests Benoît Blanchon 2014-06-27 13:24:10 +02:00
  • 568b8988d8 Renamed private members Benoît Blanchon 2014-06-27 13:18:38 +02:00
  • 4f4b35bd41 Small refactoring of the tests Benoît Blanchon 2014-06-27 13:09:52 +02:00
  • ff4060f5d1 Added a test that adds a string value in a hash Benoît Blanchon 2014-06-27 13:07:38 +02:00
  • ebb257df6e Added a test of an empty hashtable Benoît Blanchon 2014-06-27 13:00:27 +02:00
  • 48a91a219c Moved writeTo to JsonObjectBase Benoît Blanchon 2014-06-26 13:39:05 +02:00
  • e75e3b6527 Delete empty file Benoît Blanchon 2014-06-26 13:30:18 +02:00
  • 63ae9ef096 Moved floating point formatting to StringBuilder Benoît Blanchon 2014-06-26 13:28:42 +02:00
  • 33508e3fe0 Minor simplifications Benoît Blanchon 2014-06-26 13:18:28 +02:00
  • 1c4d4bfd2d Added a test with a NULL string Benoît Blanchon 2014-06-26 13:16:22 +02:00
  • 18587d132b Added a test with a NULL string Benoît Blanchon 2014-06-26 13:14:09 +02:00
  • d12e25bd8a Added a test with special chars Benoît Blanchon 2014-06-26 13:10:52 +02:00
  • 25118ad8c0 Added a test class for StringBuilder.appendEscaped() Benoît Blanchon 2014-06-26 13:05:49 +02:00
  • 7ab728e996 Added a test that appends a string longer that the capacity of the builder Benoît Blanchon 2014-06-26 13:00:14 +02:00
  • ca99749f28 Added a test that appends 2 string Benoît Blanchon 2014-06-26 12:56:30 +02:00
  • 55487ad668 Added a test that appends special chars Benoît Blanchon 2014-06-26 12:55:40 +02:00
  • 6ea9574330 Added a test that append a normal string Benoît Blanchon 2014-06-26 12:53:58 +02:00
  • 1e44f5522e Added a test that appends an empty string Benoît Blanchon 2014-06-26 12:52:56 +02:00
  • 786fe994aa Added a test class for StringBuilder Benoît Blanchon 2014-06-26 12:50:48 +02:00
  • 6b61617133 Added a test that adds a string with a backslash in it Benoît Blanchon 2014-06-25 13:55:18 +02:00
  • 45dfdbd5e4 Added method appendFormatted() Benoît Blanchon 2014-06-25 13:50:28 +02:00
  • dd6fd6f198 Added a tests of a string with a double quote in it Benoît Blanchon 2014-06-25 13:47:28 +02:00
  • ca53abdc41 Moved implementation to the .cpp file Benoît Blanchon 2014-06-25 13:34:47 +02:00
  • 5e4c4a4bdc Renamed the inner types Benoît Blanchon 2014-06-25 13:33:19 +02:00
  • aa6cf308db Added a test that adds a nested array to an array Benoît Blanchon 2014-06-25 13:31:05 +02:00
  • b8df795cb5 Added a test that adds a empty nested array in an array Benoît Blanchon 2014-06-25 13:28:56 +02:00
  • 4c387e9062 Extracted base class JsonObjectBase Benoît Blanchon 2014-06-25 13:23:08 +02:00
  • d57234e92c JsonArray: extracted methods addItem Benoît Blanchon 2014-06-25 13:14:10 +02:00
  • 6f247a5080 Extracted class StringBuilder Benoît Blanchon 2014-06-25 13:02:39 +02:00
  • d306422ed9 Replace single quotes by double quotes Benoit Blanchon 2014-06-24 21:28:02 +02:00
  • 2a20c5a25c Added a tests that adds a 'null' to an array Benoit Blanchon 2014-06-24 21:24:38 +02:00
  • 1118dd7b53 Added a test that adds a boolean to a full array Benoit Blanchon 2014-06-24 21:19:05 +02:00
  • 3d4f0f741d Added a test that adds two booleans to an array Benoit Blanchon 2014-06-24 21:18:12 +02:00
  • 77a3e1737d Added a test that adds a 'false' to an array Benoit Blanchon 2014-06-24 21:17:12 +02:00
  • a27bb3097a Generator: added a tests that adds a 'true' to an array Benoit Blanchon 2014-06-24 21:15:07 +02:00