Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

json response is more human readable with PrettyAsyncJsonResponse class#398

Merged
me-no-dev merged 6 commits intome-no-dev:masterfrom
gerald-guiony:master
Jun 22, 2019
Merged

json response is more human readable with PrettyAsyncJsonResponse class#398
me-no-dev merged 6 commits intome-no-dev:masterfrom
gerald-guiony:master

Conversation

@gerald-guiony
Copy link
Copy Markdown
Contributor

json response example

{
"deviceName": "ESP588624",
"chipId": 588624,
"heap": 24032,
"lastResetReason": "Power on",
"coreVersion": "2_3_0",
"sdkVersion": "1.5.3(aec24ac9)",
"cpuFreq": 80,
"sketchSize": 430528,
"freeSketchSpace": 614400,
"freeSpiffsSpace": true,
"accessPoint": false,
"IP": "192.168.1.15",
"macAddress": "60:01:94:08:FB:50",
"subnetMask": "255.255.255.0",
"gatewayIP": "192.168.1.254",
"dnsIP": "192.168.1.254",
"hostname": "ESP588624",
"SSID": "freebox_ASUTRY",
"BSSID": "E4:9E:12:B7:5D:34",
"RSSI": -75
}

gerald-guiony and others added 6 commits August 19, 2018 06:56
Adding PrettyAsyncJsonResponse class
json response is more human readable than with AsyncJsonResponse
Adding a PrettyAsyncJsonResponse class
@me-no-dev me-no-dev merged commit 781bddf into me-no-dev:master Jun 22, 2019
@me-no-dev
Copy link
Copy Markdown
Owner

better late than never I guess :( sorry for not finding time for this project lately

@baggior
Copy link
Copy Markdown
Contributor

baggior commented Jun 24, 2019

please reopen
cannot compile with with Arduino JSON v6

_root.measurePrettyLength
and
_root.prettyPrintTo

is not available in ArduinooJson v6 so fix please for compatibility

DanielKnoop pushed a commit to DanielKnoop/ESPAsyncWebServer that referenced this pull request Jun 17, 2022
…ass (me-no-dev#398)

* Update AsyncJson.h

Adding PrettyAsyncJsonResponse class

* Update AsyncJson.h

* Adding a PrettyAsyncJsonResponse class

json response is more human readable than with AsyncJsonResponse
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants