Commit Graph
100 Commits
Author SHA1 Message Date
Benoit Blanchon f6133f2d36 Reduced size by 300 bytes by reusing the JsonPrettyPrint from v3 2014-11-08 19:40:07 +01:00
Benoit Blanchon d8dbfe6e6d Reduced size by 706 bytes by removing virtual destructors. 2014-11-08 17:13:41 +01:00
Benoit Blanchon 1c450fd3aa Fixed floating point value parsing in the form "4e2" or "4E2". 2014-11-08 15:56:40 +01:00
Benoit Blanchon 2e47d546b2 Writing documentation... 2014-11-08 15:48:51 +01:00
Benoit Blanchon 01f13c1b11 Writing documentation... 2014-11-07 22:12:40 +01:00
Benoit Blanchon 9dc7c2a031 Writing documentation... 2014-11-07 21:41:42 +01:00
Benoit Blanchon fe779dace4 Writing documentation... 2014-11-07 20:14:09 +01:00
Benoit Blanchon 6eef52cc9c Writing documentation... 2014-11-07 18:21:34 +01:00
Benoit Blanchon d38131d495 Added JsonObject::containsKey() 2014-11-07 17:27:30 +01:00
Benoit Blanchon b4b475d692 Simplified generator example 2014-11-07 16:23:21 +01:00
Benoit Blanchon fe17706b6c Writing documentation... 2014-11-07 16:18:19 +01:00
Benoit Blanchon d7bad3d70b Added flag -fno-exceptions 2014-11-07 13:31:55 +01:00
Benoit Blanchon 5a56ec0636 Renamed writeInteger to writeLong to be more consistent 2014-11-07 13:27:42 +01:00
Benoit Blanchon 35a95f00d9 Inlined the content of JsonWriter.cpp 2014-11-07 13:23:11 +01:00
Benoit Blanchon 93397880ca Fixed compilation error with old GCC version (like the one in Arduino 1.0.6) 2014-11-07 12:12:58 +01:00
Benoit Blanchon 8c4c3d8fda Fixed warning with GCC 2014-11-07 11:59:07 +01:00
Benoit Blanchon 49025d322f Fixed warning in GCC 2014-11-07 11:52:18 +01:00
Benoit Blanchon 9d2ee6ce63 Fixed creation of JsonVariant::_invalid 2014-11-07 11:45:28 +01:00
Benoit Blanchon 70aabca0f7 Remove diagnostic lines 2014-11-07 11:28:04 +01:00
Benoit Blanchon dfd59f644b Added comments 2014-11-07 09:35:53 +01:00
Benoit Blanchon ee520d1ff5 Cleaned parseArray() 2014-11-07 09:30:00 +01:00
Benoit Blanchon ee580f1968 Removed comment line 2014-11-07 09:21:07 +01:00
Benoit Blanchon 5179aa0d4f Cleaned parseObject() 2014-11-07 09:20:48 +01:00
Benoit Blanchon a7b78fadb0 Removed StaticJsonBuffer.clear() 2014-11-06 17:08:42 +01:00
Benoit Blanchon d94bcbf249 Added comments 2014-11-06 16:58:24 +01:00
Benoit Blanchon 086e99efb4 Added comment 2014-11-06 16:29:29 +01:00
Benoit Blanchon 7b8aba46cc Fixed compilartion error 2014-11-06 16:08:15 +01:00
Benoit Blanchon 579c9359df Added comments 2014-11-06 16:08:06 +01:00
Benoit Blanchon 885e35e892 Added comments 2014-11-06 14:48:14 +01:00
Benoit Blanchon e7864c9566 Use Print& instead of Print* 2014-11-06 14:29:29 +01:00
Benoit Blanchon 6e67bc442f Added comments 2014-11-06 14:27:14 +01:00
Benoit Blanchon ac9b776aa1 Fixed remaining cpplint warnings 2014-11-06 14:08:53 +01:00
Benoit Blanchon d8e595907b Muted runtime/references 2014-11-06 13:59:38 +01:00
Benoit Blanchon 1e02fabdec Simplified JsonWriter and PrettyJsonWriter 2014-11-06 13:52:33 +01:00
Benoit Blanchon 79bfe731af Added comments 2014-11-06 13:42:16 +01:00
Benoit Blanchon a3425a6306 Added a nesting limit to the parser to prevent stack overflow that could be a security issue 2014-11-06 10:24:37 +01:00
Benoit Blanchon 2e4dd2d591 Updated warning flags 2014-11-06 09:44:09 +01:00
Benoit Blanchon f360cc664c Added empty line at end of file 2014-11-06 09:28:28 +01:00
Benoit Blanchon ce6f839153 Warnings level were not correct with Clang 2014-11-06 09:28:04 +01:00
Benoit Blanchon 01949f7da0 Added more tests of StaticJsonBuffer 2014-11-05 21:10:36 +01:00
Benoit Blanchon 08de76e2ba Simplified StaticJsonBuffer tests 2014-11-05 13:54:53 +01:00
Benoit Blanchon cb97e1fa19 Added tests of StaticJsonBuffer 2014-11-05 13:45:30 +01:00
Benoit Blanchon 95e564bfb6 Added test of a failing JsonBuffer::createObject() 2014-11-05 13:31:31 +01:00
Benoit Blanchon 342b079133 Rename Node into ListNode 2014-11-05 13:14:15 +01:00
Benoit Blanchon 8138c64116 Renamed NodeIterator into ListIterator 2014-11-05 13:12:20 +01:00
Benoit Blanchon 64b4e15ce6 Added tests of JsonObject::const_iterator 2014-11-05 13:10:22 +01:00
Benoit Blanchon e722fc50b1 Delete Printable interface because it's not used anymore 2014-11-05 12:51:22 +01:00
Benoit Blanchon a9f4f611d4 Extracting a common base class for JsonArray and JsonObject... 2014-11-05 11:53:08 +01:00
Benoit Blanchon 0fb4fa8f86 Extracting a common base class for JsonArray and JsonObject... 2014-11-05 11:43:59 +01:00
Benoit Blanchon 7d73e63c78 Extracting a common base class for JsonArray and JsonObject... 2014-11-05 11:38:36 +01:00
Benoit Blanchon ebb591ef28 Extracting a common base class for JsonArray and JsonObject... 2014-11-05 11:28:19 +01:00
Benoit Blanchon 31dea656d5 Splitted JsonIterator into NodeIterator and NodeConstIterator 2014-11-05 11:16:36 +01:00
Benoit Blanchon 768312e870 Merged JsonArrayNode and JsonObjectNode into a single template 2014-11-05 11:09:48 +01:00
Benoit Blanchon 5d0e326bfd Removed JsonPair constructor 2014-11-05 09:31:29 +01:00
Benoit Blanchon 8ac4346fd5 Replaced JsonObjectIterator and JsonObjectConstIterator by a template 2014-11-05 09:27:03 +01:00
Benoit Blanchon bafec6f1a3 Unified JsonArrayNode and JsonObjectNode 2014-11-05 09:24:15 +01:00
Benoit Blanchon c6d11294e4 Replaced JsonArrayIterator and JsonArrayConstIterator by a template 2014-11-05 09:04:26 +01:00
Benoit Blanchon 6ce2497879 Move JsonPrintable into Internals/ 2014-11-05 08:53:41 +01:00
Benoit Blanchon 782b178f4e Fixed warnings in Visual Studio 2014-11-04 19:53:13 +01:00
Benoit Blanchon 64529bb1a3 Added test of JsonVariant::invalid() 2014-11-04 13:10:25 +01:00
Benoit Blanchon 01dc0d6268 Added test of undefined JsonVariant 2014-11-04 13:07:14 +01:00
Benoit Blanchon 289b5333d6 Improved test printers 2014-11-04 13:06:47 +01:00
Benoit Blanchon 4a17e8c34b Minor changes 2014-11-04 10:38:33 +01:00
Benoit Blanchon c4cda780d5 Added more tests of subscript operator 2014-11-04 10:33:09 +01:00
Benoit Blanchon e5669577df Added JsonVariant::operator[](const char*) 2014-11-04 10:30:45 +01:00
Benoit Blanchon 97768ec176 Added JsonVariant::operator[](int) 2014-11-04 10:22:13 +01:00
Benoit Blanchon e25eaed75a Cleaned #includes 2014-11-04 10:01:21 +01:00
Benoit Blanchon 09f6d059a7 Renamed JsonValue to JsonVariant 2014-11-04 09:51:25 +01:00
Benoit Blanchon 699292b058 Arduino example are now compiling 2014-11-03 21:29:55 +01:00
Benoit Blanchon d9cc259df3 Added declaration for placement new because it was not available in Arduino 2014-11-03 21:29:19 +01:00
Benoit Blanchon 43ad37e7ce Now use relative paths in for #include 2014-11-03 18:35:22 +01:00
Benoit Blanchon bb816037d6 Minor change 2014-11-03 18:29:52 +01:00
Benoit Blanchon 04cde11a04 Now use uint8_t to store decimal count 2014-11-03 18:28:24 +01:00
Benoit Blanchon 2f8fde6772 Added ReferenceType::operator!=() 2014-11-03 18:25:17 +01:00
Benoit Blanchon f224408c07 Added tests of comparison operators 2014-11-03 18:23:39 +01:00
Benoit Blanchon 21e073a3b4 Renamed JsonValueTests into JsonValue_Copy_Tests 2014-11-03 17:52:30 +01:00
Benoit Blanchon f9ea82a2af Added many tests storing values in JsonValue 2014-11-03 17:50:01 +01:00
Benoit Blanchon 1ce6d663af Replaced 0 literals by more explicit '\0' and NULL 2014-11-03 17:03:55 +01:00
Benoit Blanchon c1c63067d4 Removed old source files 2014-11-03 16:45:06 +01:00
Benoit Blanchon a8d3e9997e Ported test of Gbathree's bug 2014-11-03 14:38:46 +01:00
Benoit Blanchon 7cdf7b1769 Added equality operator 2014-11-03 14:37:50 +01:00
Benoit Blanchon 429d5011b4 Made it possible to use const JsonObject& 2014-11-03 14:33:33 +01:00
Benoit Blanchon 54f9bd9572 Simplified JsonWriter hierarchy 2014-11-03 12:58:52 +01:00
Benoit Blanchon 2a60c96baf Removed virtuals from JsonWriter hierarchy 2014-11-03 12:51:24 +01:00
Benoit Blanchon f26f4263ea Removing virtual methods... 2014-11-03 12:32:47 +01:00
Benoit Blanchon 507f809da0 Merge branch 'merge-parser-and-generator' of github.com:bblanchon/ArduinoJson into merge-parser-and-generator 2014-11-03 11:46:49 +01:00
Benoit Blanchon ad83820257 Added integration test with YQL data 2014-11-01 16:39:51 +01:00
Benoit Blanchon cd773e3f37 Added an integration test that uses prettyPrintTo() 2014-11-01 13:45:07 +01:00
Benoit Blanchon 9da7dce310 Fixed double formatting issue 2014-11-01 13:30:37 +01:00
Benoit Blanchon 825ab0357e Added integration test with a JSON sample from OpenWeatherMap 2014-11-01 09:09:58 +01:00
Benoit Blanchon fead9b50b1 Fixed bug in parser when "null", "true" or "false" is mispelled 2014-10-31 21:08:04 +01:00
Benoit Blanchon 98463ea168 Added a script to run tests continuously 2014-10-31 18:41:34 +01:00
Benoit Blanchon 74b4544560 Fixed parsing when opening brace/bracket is missing 2014-10-31 16:50:21 +01:00
Benoit Blanchon 2b5b8fb4c5 Removed empty files 2014-10-31 16:30:10 +01:00
Benoit Blanchon d35b680481 Removed ForwardDeclarations.hpp 2014-10-31 12:27:33 +01:00
Benoit Blanchon ca0fbf00f9 Cleaning up... 2014-10-31 12:16:32 +01:00
Benoit Blanchon 5443e90baf Cleaning up... 2014-10-31 12:02:15 +01:00
Benoit Blanchon a5dbb397ca Fixed failing test with clang 2014-10-31 11:38:58 +01:00
Benoit Blanchon 889f059758 All tests passed! 2014-10-30 21:51:59 +01:00
Benoit Blanchon 45a8ed6531 Huge refactoring in progress... 2014-10-30 15:31:27 +01:00