我如何才能找到和JSON比較值的?讓說JSON比較元素或現有元素
{"data 1": {
"product": "54",
"info": {
"browser": "Safari",
"isp": "isp sample",
"width": 500,
"ip": 109.24.55.121,
"uid": 124,
"location": 10.23,123.90
}
}
{"data 2": {
"campaign": "2",
"info": {
"browser": "Mozilla",
"isp": "isp sample",
"width": 500,
"ip": 109.24.55.121,
"uid": 231,
"location": 10.23,123.90
}
}
{"data 3": {
"campaign": "2",
"info": {
"browser": "Mozilla",
"isp": "isp sample",
"width": 500,
"ip": 109.24.55.121,
"uid": 227,
"location": 10.23,123.90
}
}
{"same data": {
"campaign": "2",
"info": {
"browser": "Mozilla",
"isp": "isp sample",
"width": 500,
"ip": 109.24.55.121,
"uid": 227,
"location": 10.23,123.90
}
}
{"same data": {
"campaign": "2",
"info": {
"browser": "Mozilla",
"isp": "isp sample",
"width": 500,
"ip": 109.24.55.121,
"uid": 227,
"location": 10.23,123.90
}
}
我要輸出什麼有什麼similarities.on字符串和什麼樣的價值觀。
你想刪除重複值嗎? – diEcho 2011-04-20 04:23:39
我想比較哪些字符串具有相同的值。 – kedomonzter 2011-04-20 04:29:36