Commit Graph

98 Commits

Author SHA1 Message Date
Benoit Blanchon
23e61cc0f7 Renamed IndentedPrintDecorator into IndentedPrint 2014-08-26 09:56:05 +02:00
Benoit Blanchon
b5002265cf Refactoring... 2014-08-26 09:53:32 +02:00
Benoit Blanchon
e48ea94789 Refactoring... 2014-08-26 09:49:59 +02:00
Benoit Blanchon
6539c6982c Extracted class IndentedPrintDecorator from PrettyPrintDecorator 2014-08-26 09:28:41 +02:00
Benoit Blanchon
d877d77b63 Moved PrettyPrintDecorator into the namespace ArduinoJson::Generator 2014-08-25 13:19:07 +02:00
Benoit Blanchon
1df6cde026 Refactoring... 2014-08-25 13:14:09 +02:00
Benoit Blanchon
fafae8181b Refactoring... 2014-08-25 12:51:56 +02:00
Benoit Blanchon
151fc52c1c Refactoring... 2014-08-25 12:48:38 +02:00
Benoit Blanchon
ea79340dc7 Refactoring... 2014-08-25 12:41:49 +02:00
Benoit Blanchon
9e88514700 Refactoring.... 2014-08-25 12:28:58 +02:00
Benoit Blanchon
752378a8cb Fixed bug when a string contains a brace 2014-08-25 12:23:08 +02:00
Benoit Blanchon
8465cc0c83 Refactoring... 2014-08-25 11:46:42 +02:00
Benoit Blanchon
2ddf8f1619 Renamed IndentedPrintDecorator to PrettyPrintDecorator 2014-08-25 11:42:07 +02:00
Benoit Blanchon
f7aa0f89e3 Added JsonPrintable.prettyPrintTo(Print&) 2014-08-25 11:39:04 +02:00
Benoit Blanchon
981adf1989 Test empty nested arrays 2014-08-25 11:01:22 +02:00
Benoit Blanchon
3f2b7b706a Test an array with one element 2014-08-25 10:55:09 +02:00
Benoit Blanchon
410ca55e88 Added a space before the object's values 2014-08-25 10:34:28 +02:00
Benoit Blanchon
66c05041e8 Test an object with comma, quote and column in the value 2014-08-25 10:31:03 +02:00
Benoit Blanchon
aafabd8e8d Test an object with two memebrs 2014-08-25 10:22:42 +02:00
Benoit Blanchon
eb1a774778 Fixed empty object output 2014-08-25 09:56:51 +02:00
Benoit Blanchon
75c89e7b35 Test an object with one member 2014-08-25 09:52:42 +02:00
Benoit Blanchon
1f25d4434e Added test of an empty string 2014-08-25 09:17:32 +02:00
Benoit Blanchon
f29904e217 Added skeleton of class IndentedPrintDecorator 2014-08-25 09:06:46 +02:00
Benoit Blanchon
7246db7691 Added a note to avoid issue #10 2014-08-04 15:12:09 +02:00
Benoit Blanchon
13593d73a3 Fixed nested object in arrays bug 2014-08-04 09:30:57 +02:00
Benoit Blanchon
bc86ae800a Changed JsonArray tests to show the issue 2014-08-04 09:22:45 +02:00
Benoit Blanchon
8e5ea91f8d Updated README 2014-08-03 13:48:22 +02:00
Benoit Blanchon
8e81b9bb26 Added JsonObjectBase::remove() 2014-08-03 13:16:35 +02:00
Benoit Blanchon
817cc09975 Added typedef JsonKey 2014-08-03 13:09:07 +02:00
Benoit Blanchon
1bc45f1fd7 Extracted method getMatchingPair() 2014-08-02 16:25:18 +02:00
Benoit Blanchon
d2fe9ddf49 Added JsonObjectBase::containsKey() 2014-08-02 16:11:02 +02:00
Benoit Blanchon
5cc06180e6 Removed JsonValue::null(), moved the instance to JsonObjectBase 2014-08-02 15:55:46 +02:00
Benoit Blanchon
65e8b6d405 Optimized size of JsonObjectBase indexer (-58 bytes) 2014-08-02 15:37:01 +02:00
Benoit Blanchon
09294cb5e6 Made EscapedString pure static 2014-08-01 15:32:05 +02:00
Benoit Blanchon
158f4600fb Added static EscapedString::printTo 2014-08-01 15:27:58 +02:00
Benoit Blanchon
0d28612507 Fixed casting JsonValue to string 2014-08-01 15:23:14 +02:00
Benoit Blanchon
7c99d4d63d Reduced usages of EscapedString 2014-08-01 15:22:30 +02:00
Benoit Blanchon
1a01800782 Test casting a JsonValue to a JsonArray 2014-08-01 15:06:31 +02:00
Benoit Blanchon
6384bc414a Test casting a JsonValue to a float 2014-08-01 14:58:16 +02:00
Benoit Blanchon
c10bcee324 Test casting a JsonValue to a double 2014-08-01 14:56:46 +02:00
Benoit Blanchon
028ff6676e Test casting a JsonValue to a bool 2014-08-01 14:54:34 +02:00
Benoit Blanchon
23b5237f74 Test casting a JsonValue to a long 2014-08-01 14:53:05 +02:00
Benoit Blanchon
88510705be Test casting a JsonValue to an int 2014-08-01 14:52:15 +02:00
Benoit Blanchon
c1f4128ccd Added a failng test 2014-08-01 14:35:54 +02:00
Benoit Blanchon
2771b830b7 Replace the examples with the new API 2014-07-31 20:33:12 +02:00
Benoit Blanchon
60c6f2db47 Added operator[] 2014-07-31 20:11:55 +02:00
Benoit Blanchon
13c386c7a3 Moved JsonValue to namespace ArduinoJson::Generator 2014-07-31 19:57:52 +02:00
Benoit Blanchon
7877ee1b4c Replaced set() by operator=() 2014-07-31 19:48:51 +02:00
Benoit Blanchon
2c29327ebd Return a JsonValue& instead of a KeyValuePair* (+40 bytes) 2014-07-31 19:42:09 +02:00
Benoit Blanchon
85ffb83aa6 Fixed failing test 2014-07-31 18:50:01 +02:00