I have tried looking on the Mozilla JSON stringify page of their docs as well as here on SO and Google but found no explanation.
(我已经尝试查看他们的文档的Mozilla JSON stringify页面以及SO和Google,但没有找到任何解释。)
I have used JSOn stringify many time but never come across this result(我已经多次使用JSOn stringify但从未遇到过这个结果)
I have an array of JSON objects
(我有一个JSON对象数组)
[
{
"param_2": "Description 1",
"param_0": "Name 1",
"param_1": "VERSION 1"
},
{
"param_2": "Description 2",
"param_0": "Name 2",
"param_1": "VERSION 2"
},
{
"param_2": "Description 3",
"param_0": "Name 3",
"param_1": "VERSION 3"
}
]
attached to my $scope
and in order to POST
them as one paramater I used the JSON.stringify() method and I get the following:
(连接到我的$scope
,并以POST
他们为我所用的JSON.stringify()方法,一个paramater,我得到以下几点:)
[
{
"param_2": "Description 1",
"param_0": "Name 1",
"param_1": "VERSION 1",
"$$hashKey": "005"
},
{
"param_2": "Description 2",
"param_0": "Name 2",
"param_1": "VERSION 2",
"$$hashKey": "006"
},
{
"param_2": "Description 3",
"param_0": "Name 3",
"param_1": "VERSION 3",
"$$hashKey": "007"
}
]
I am just curious what exactly is the $$hashkey as I expected something more similar to the following from the stringify method:
(我只是很好奇究竟是什么是$$ hashkey,因为我期望与stringify方法中的以下内容更相似:)
[
{
"1":{
"param_2": "Description 1",
"param_0": "Name 1",
"param_1": "VERSION 1"
},
"2":{
"param_2": "Description 2",
"param_0": "Name 2",
"param_1": "VERSION 2"
},
"3":{
"param_2": "Description 3",
"param_0": "Name 3",
"param_1": "VERSION 3"
}
}
]
I am not sure if it is a factor but I am using Angularjs 1.1.5, JQuery 1.8.2 and Spring 3.0.4 and Spring security 3.0.7 on the Server side
(我不确定它是否是一个因素,但我Angularjs 1.1.5, JQuery 1.8.2 and Spring 3.0.4 and Spring security 3.0.7 on the Server side
使用Angularjs 1.1.5, JQuery 1.8.2 and Spring 3.0.4 and Spring security 3.0.7 on the Server side
)
It is not causeing me any issues but I would like to know the cause and reason for the $$hashkey
(它不会引起任何问题,但我想知道$$hashkey
的原因和原因)
ask by jonnie translate from so