-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to configure indentation #22
Comments
It sounds good, but any idea where to store that? |
We already have a configuration property |
That property value is a little weird saying "The value of the property could be be anything.". Meaning it's totally up to an implementation what kind of value they use to control |
If a map given to I added two configuration properties |
Funny because it's not written down anywhere not even in JavaDoc, maybe you could help with the spec by writing some of that down as mentioned here? ;-) |
Indent is currently hardcoded:
https://github.com/eclipse-ee4j/jsonp/blob/9892c0658f9d55b819d39039a364df37d1d60202/impl/src/main/java/org/glassfish/json/JsonPrettyGeneratorImpl.java#L31
I prefer two spaces as indendation. To change I would have to replace the entire implementation. It should be trivial to create a configuration property so the indent could be set via the config map supplied to the generator factory.
WDYT?
The text was updated successfully, but these errors were encountered: