Commit Graph

405 Commits

Author SHA1 Message Date
Benoit Blanchon f7fa9e9467 Added JsonArray::createNestedObject() 2014-10-07 15:27:24 +02:00
Benoit Blanchon 09b6f71853 Added JsonObject::createNestedArray() 2014-10-07 12:11:10 +02:00
Benoit Blanchon e28119f03b Test JsonObject::prettyPrintTo() 2014-10-07 11:58:59 +02:00
Benoit Blanchon 7a40711af3 Added JsonContainer::prettyPrintTo() 2014-10-07 11:22:10 +02:00
Benoit Blanchon b6799dc231 Refactored the serialization 2014-10-05 16:26:13 +02:00
Benoit Blanchon 31c9ea9b28 Test JsonArray serialization 2014-10-05 15:23:52 +02:00
Benoit Blanchon 6330ab1271 Test that JsonObject can contain inner arrays 2014-10-05 15:15:25 +02:00
Benoit Blanchon c35a0fadc3 Test that JsonArray can contain inner objects 2014-10-05 15:14:29 +02:00
Benoit Blanchon bbe034222c Test that JsonArray can contain inner arrays 2014-10-05 15:13:00 +02:00
Benoit Blanchon 305944e907 Test that JsonArray can store strings 2014-10-05 15:04:44 +02:00
Benoit Blanchon f0754aed53 Test that JsonArray can store booleans 2014-10-05 15:04:17 +02:00
Benoit Blanchon 99a785179d Test that JsonArray can contain doubles 2014-10-05 15:02:40 +02:00
Benoit Blanchon 21259bc61a Test that JsonArray can store integers 2014-10-05 14:55:14 +02:00
Benoit Blanchon 4c67d0579a Test that JsonArray grows after calling add() 2014-10-05 14:48:19 +02:00
Benoit Blanchon cb3c59ec07 Added JsonArray 2014-10-05 14:40:03 +02:00
Benoit Blanchon 4d2d535a03 Pulled up code from JsonObject to JsonContainer 2014-10-01 16:56:22 +02:00
Benoit Blanchon b0e43f7538 Extracted class JsonContainer 2014-10-01 16:18:14 +02:00
Benoit Blanchon d66a7adc22 Moved files into Internals/ and Arduino/ 2014-10-01 16:08:32 +02:00
Benoit Blanchon 1a98fd5dfc Serialize inner objects 2014-10-01 15:47:32 +02:00
Benoit Blanchon 57400cee14 Extracted methods serializeObject and serializeKeyValue 2014-10-01 12:46:41 +02:00
Benoit Blanchon c99bdbf4b9 Extracted JsonNodeSerializer 2014-10-01 12:28:30 +02:00
Benoit Blanchon a665fa1dec Converted StringBuilder tests to gtest 2014-09-30 18:07:08 +02:00
Benoit Blanchon 78048d1d92 Converted EscapedString tests to gtest 2014-09-30 18:03:17 +02:00
Benoit Blanchon 065fe57a7c Serialize booleans in objects 2014-09-30 17:56:28 +02:00
Benoit Blanchon f251563af1 Serialize floats in objects 2014-09-30 17:32:45 +02:00
Benoit Blanchon c1ab55f9d9 Serialize integer values in object 2014-09-30 17:24:14 +02:00
Benoit Blanchon 27a4d57f7c Test that now value can be added when all nodes are allocated 2014-09-30 17:14:59 +02:00
Benoit Blanchon 22e36bbe9c Restored tests from previous test suite 2014-09-30 17:08:59 +02:00
Benoit Blanchon d2e1b241be Test that size doesn't change when remove() is called with an invalid key 2014-09-30 17:07:29 +02:00
Benoit Blanchon 3d9e40a3a8 Test that the size is decreased when object are removed 2014-09-30 17:05:33 +02:00
Benoit Blanchon 9f85368cce Test serialization of an object with strings 2014-09-30 16:59:44 +02:00
Benoit Blanchon 3243f2dc58 Implement Printable 2014-09-30 16:43:25 +02:00
Benoit Blanchon 6b2705769a Refactored to use StringBuilder 2014-09-30 16:40:00 +02:00
Benoit Blanchon ab2587f089 Test empty object serialization 2014-09-30 16:31:22 +02:00
Benoit Blanchon d3cf568d07 Test that char* are copied 2014-09-28 21:35:08 +02:00
Benoit Blanchon e417c137fc Test that bool values are copied 2014-09-28 21:23:40 +02:00
Benoit Blanchon d549070fd3 Test that doubles in JsonValue are copied 2014-09-28 21:22:20 +02:00
Benoit Blanchon 42ce5ab31f Test that integers in JsonValue are copied 2014-09-28 21:18:43 +02:00
Benoit Blanchon e190b20ae1 Fixed inner object bug 2014-09-28 21:04:59 +02:00
Benoit Blanchon bc44c36385 Test that nested JsonObject can be stored 2014-09-27 16:18:40 +02:00
Benoit Blanchon bcc8cece24 Moved JsonObject._buffer into the JsonNode's content 2014-09-27 15:34:34 +02:00
Benoit Blanchon a7ff04db0e Added "const" to cast operators 2014-09-27 15:25:00 +02:00
Benoit Blanchon a9a51ec1e2 Test that string can be stored in JsonObject 2014-09-27 15:24:16 +02:00
Benoit Blanchon 0495297c6c Group test in a test fixture 2014-09-27 15:19:03 +02:00
Benoit Blanchon 75588946c6 Test that boolean values can be stored in a JsonObject 2014-09-27 15:04:06 +02:00
Benoit Blanchon 5fa446d3f5 Test that a double can be stored in a JsonObject 2014-09-27 14:59:02 +02:00
Benoit Blanchon 71fd2de675 Test that integers can be stored in a JsonObject 2014-09-27 14:51:50 +02:00
Benoit Blanchon a2fc188526 Test that adding the same value twice doesn't increase the size of the object 2014-09-27 14:43:19 +02:00
Benoit Blanchon 166bdd6919 Test that adding values to the JsonObject increase the size of the buffer 2014-09-27 12:16:53 +02:00
Benoit Blanchon 4d4119e589 Test that JsonObject.size() is increased when values are added 2014-09-27 11:53:26 +02:00