vue-json-editor icon indicating copy to clipboard operation
vue-json-editor copied to clipboard

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

Open tuotuogenjudi opened this issue 6 years ago • 1 comments

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

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

tuotuogenjudi avatar Jan 11 '19 01:01 tuotuogenjudi

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.

bloodynumen avatar Dec 10 '21 02:12 bloodynumen