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数据为什么会按字母排序 #18

Open
tuotuogenjudi opened this issue Jan 11, 2019 · 1 comment
Open

JSON数据为什么会按字母排序 #18

tuotuogenjudi opened this issue Jan 11, 2019 · 1 comment

Comments

@tuotuogenjudi
Copy link

输入的JSON为 {
"cc": "cc",
"aa": "aa"
}

获取的数据为{
"aa": "aa",
"cc": "cc"
}

@bloodynumen
Copy link

json的object本身是无序的 可以了解下json数据格式

https://www.rfc-editor.org/rfc/rfc7159.html

  An object is an unordered collection of zero or more name/value
   pairs, where a name is a string and a value is a string, number,
   boolean, null, object, or array.

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

2 participants