Skip to content
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

Json order is not the order I write by means jsonwriter #16

Open
MLFedeB opened this issue May 8, 2014 · 0 comments
Open

Json order is not the order I write by means jsonwriter #16

MLFedeB opened this issue May 8, 2014 · 0 comments

Comments

@MLFedeB
Copy link

MLFedeB commented May 8, 2014

Hi all,

I'm wondering if there is a way to set the order for the JSON response because it's not structured acording the order I write key-value using the jsonWriter.

I.E.:

jsonWriter.object().key("a").value("first").key("b").value("second")

{
"b": "second",
"a": "first"
}

I expected a-first pair before b-second pair.

This disorder is worst when I include arrays or nest objects in the JSON response.

Thanks in advance!
Fede

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant