Commit Graph

22 Commits

Author SHA1 Message Date
Pablo Clemente Maseda 2f784268f0
Redefine DYNAMIC_JSON_DOCUMENT_SIZE if not defined (#922) 2021-02-25 00:03:28 +02:00
Mike Dunston c7ece88eac Update AsyncJson.h (#604)
remove extra #endif that should have been dropped as part of 59066bd1e4
2019-10-02 13:27:29 +03:00
CODeRUS e88fc12de8 Make PrettyAsyncJsonResponse to use maxJsonBufferSize for ArduinoJson 6 (#607) 2019-10-02 12:26:01 +03:00
Mike Dunston 59066bd1e4 PrettyAsyncJsonResponse for ArduinoJson 6.x (#539)
* PrettyAsyncJsonResponse for ArduinoJson 6.x

add support for PrettyAsyncJsonResponse in ArduinoJson 6.x

* Update AsyncJson.h

Maintain order of args to AsyncJsonResponse between ArduinoJson 5.x and 6.x compatibility for ease of migration
2019-09-24 21:24:18 +03:00
Marco Tombesi b0c6144886 Update AsyncJson.h (#533)
for the newest ArduinoJson v6 compatibility
2019-06-24 17:27:35 +02:00
Gérald Guiony 781bddf20c json response is more human readable with PrettyAsyncJsonResponse class (#398)
* Update AsyncJson.h

Adding PrettyAsyncJsonResponse class

* Update AsyncJson.h

* Adding a PrettyAsyncJsonResponse class

json response is more human readable than with AsyncJsonResponse
2019-06-22 18:24:01 +02:00
buddydvd d55dd73e44 Fix compiler warnings for AsyncJson’s _contentLength/_maxContentLength vars (#439)
The type of _contentLength and _maxContentLength should both be unsigned
integer type size_t.
2019-06-22 18:12:53 +02:00
buddydvd fbe191d4f0 Add header ESPAsyncWebServer.h to AsyncJson.h (#440)
This allows us to include `AsyncJson.h` in other
code without the need to first include
`ESPAsyncWebServer.h`.
2019-06-22 18:11:32 +02:00
Marco Tombesi bde2fce07b arduino json 6 async web server migration (#491)
* arduino json 6 async web server migration

* Update .travis.yml

fix travis error

* Revert "Update .travis.yml"

This reverts commit 37d1bf0e71ad21dc502aa632c1df503820686046.

* gitignore

* test fix travis

* fix travis

* fix proposed in #487

* fix travis

* fix travis

* fix travis

* fix travis

* ARDUINOJSON_5_COMPATIBILITY

* replaced to #if ARDUINOJSON_VERSION_MAJOR == 5

* fix

* added AsyncWebServer::end()

* added AsyncWebServer::end()

* Update WebServer.cpp

fix

* fix typo

* fix typo
2019-06-22 12:20:31 +02:00
Merlin Schumacher 95dedf7a2d Corrected datatype für JSON_MIMETYPE (#396)
* Change JSON MIME type to application/json

* Corrected datatype für JSON_MIMETYPE (Fixes #390)
2018-12-02 18:12:46 +01:00
Arsène von Wyss d7399a7664 Added handler for correct JSON deserialization, addresses #195 (#287)
* Added handler for correct JSON deserialization (even with multiple body data writes), addresses #195

* Fixed typo

* Added JSON handler example to readme

* Moved Json Handler uri parameter to constructor

* Use request->_tempObject for JSON char data buffer

* Moved onRequest to constructor in JSON async handler
2018-07-24 20:56:05 +02:00
Merlin Schumacher fc71230a31 Change JSON MIME type to application/json (#311) 2018-07-24 20:13:14 +02:00
Charles 120984e6d2 Added getSize() to know JSON buffer size (#151)
* Added doc for ws.enable and ws.enabled

* added getSize()
2017-04-06 10:10:59 +02:00
Sakari Kapanen ea7b76b0ee Fix const correctness of _sourceValid (#100) 2016-11-28 22:00:33 +02:00
Max Lunin a7c4dfb04f Template container instead of direct pointer manipulation. (#95)
* using Container instead ofdirect pointers list manipulation

* fixed different type of virtual methods.

* Fixed typo in conditional

* Renamed ListArray to LinkedList

* Const reference to String as method parameters to prevent additional copy and memory allocation when String passed by value

* fix 'min' redefinition

* removed #include <iterator>
begin/end methods it's enough for 'for( : )' loop
count() renamed to length()
spacing fixing

* Const reference to String as method parameters to prevent additional copy and memory allocation when String passed by value

* Fixed unused params warnings
2016-11-27 17:42:09 +02:00
Charles 1d275900eb Prevent Buffer Overflow and Added FlashStringHelper for text and binary (#26)
* Prevent buffer overflow on received data

* pass to 7 char to avoid save to flash by SDK

* return _contentLength, avoid array reparse to know len

* Added FlashStringHelper for text and binary

* Added FlashStringHelper also to AsyncWebSocketClient

* Added PROGMEM doc

* Corrected binary was sending PSTR as text, addded len

* Server calls client method and code as asked @me-no-dev

* server calls client method and code as asked by @me-no-dev

* Changed Code presentation
2016-05-12 15:17:35 +03:00
Me No Dev 060183974c return json object by default 2016-05-03 03:59:49 +03:00
Me No Dev d74a84455f AsyncJson: add option to init with root as json array
ref: https://github.com/bblanchon/ArduinoJson/issues/272
2016-05-02 19:54:37 +03:00
Me No Dev 3bce374c16 the destructor was not defined 2016-01-28 20:57:22 +02:00
Andrew Melvin fe49272cae Oops 2016-01-28 20:47:55 +02:00
Andrew Melvin 45b74f0cb6 fix return in skip
make setLength void
make destructor virtual
2016-01-28 20:31:56 +02:00
Andrew Melvin d9234dbc9c rename to AsyncJson.h from ESPasyncJson.h 2016-01-28 18:49:55 +02:00