We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
indentionStep
com.jsoniter.any.Any
Is this intentional?
import com.jsoniter.JsonIterator; import com.jsoniter.any.Any; import com.jsoniter.output.JsonStream; import com.jsoniter.spi.Config; import com.jsoniter.spi.JsoniterSpi; public class Main { public static class Foo { public String foo = "bar"; } public static void main(String[] args) { Config conf = JsoniterSpi.getCurrentConfig().copyBuilder().indentionStep(2).build(); JsoniterSpi.setDefaultConfig(conf); JsoniterSpi.setCurrentConfig(conf); Any obj = JsonIterator.deserialize("{\"foo\":\"bar\"}"); System.out.println(JsonStream.serialize(obj)); System.out.println(JsonStream.serialize(new Foo())); } }
The output is:
{"foo":"bar"} { "foo": "bar" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is this intentional?
The output is:
The text was updated successfully, but these errors were encountered: