Comments (6)
It will be useful if we can set a starting indentation level so the printed string starts from any column like these ones:
{
"key":" value"
}
or
{
"key":" value"
}
from arduinojson.
I started implementing the feature, based on your first comment.
I think it's working fine, but it doesn't allow what you're asking in the second comment.
Please try it out, it's in the indented-print-decorator branch.
Meanwhile, i'll try to add a starting indentation level.
from arduinojson.
I forgot to tell you, that I updated the JsonGeneratorExample
to show how to use it.
Instead of:
Serial.print(root);
// which is the same as root.printTo(Serial)
you call:
root.prettyPrintTo(Serial);
from arduinojson.
OK, I think I wrote something that will be perfect for your.
Please have a look at the IndentedPrint example
from arduinojson.
Yes, that's nice. I will check your new classes and their patterns in the weekend. Thanks.
from arduinojson.
The enhancement is suitable I think. Thanks for your effort.
from arduinojson.
Related Issues (20)
- Unsupported fields in `library.properties` HOT 2
- Create JsonObject subclass HOT 7
- Base64 image string to json HOT 3
- Add ability to serialize just the keys or just the values. This would be very useful when both json and csv are needed. HOT 2
- #include <bits/error_constants.h> : exit status 1 HOT 1
- JsonVariant with .to<JsonArray>(); HOT 1
- How to manage big json using HTTPClient ? HOT 12
- ArduinoJson prefer Safari? Maybe this is not a bug! HOT 6
- IP Address Issue HOT 1
- switching from DynamicJsonDocument to JsonDocument HOT 5
- Example request for WiFiNINA HOT 4
- JsonDocument in queue HOT 4
- Is there a way to cache a JsonObject between function calls? HOT 5
- compilation error HOT 3
- How to deserialize large arrays without running out of RAM? HOT 8
- Going crazy trying to check if a key exists! HOT 6
- Filtering large arrays of objects HOT 4
- deserializeJson from HTTP result in EmptyInput error HOT 3
- best way to create a sub document HOT 6
- Callback-based filter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinojson.