Was ist der zu meinem JSON.stringify-Ergebnis hinzugefügte $$ hashKey?
Ich habe versucht, auf der SucheMozilla JSON stringify Seite ihrer Dokumente sowie hier auf SO und Google, fand aber keine Erklärung. Ich habe viele Male JSOn stringify verwendet, bin aber nie auf dieses Ergebnis gestoßen
Ich habe ein Array von JSON-Objekten
[
{
"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"
}
]
angebracht zu meinem$scope
und umPOST
Ich habe sie als einen Parameter mit der JSON.stringify () -Methode verwendet und Folgendes erhalten:
[
{
"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"
}
]
Ich bin nur neugierig, was genau der $ -Hashkey ist, da ich von der stringify-Methode etwas Ähnliches wie das Folgende erwartet habe:
[
{
"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"
}
}
]
Ich bin nicht sicher, ob es ein Faktor ist, aber ich benutzeAngularjs 1.1.5, JQuery 1.8.2 and Spring 3.0.4 and Spring security 3.0.7 on the Server side
Es verursacht mir keine Probleme, aber ich würde gerne die Ursache und den Grund für die Probleme kennen$$hashkey