Nonstandard JSON structure
Jzow opened this issue · 2 comments
Jzow commented
I think non-standard JSON structures should not be successfully parsed by JSON, or we should warn developers that this is a non-standard JSON structure
"payout": [
[
"2022-05-25T00:00:00Z",
"txid moved to user_payout",
0.00014148402252361394091452898341,
0,
0
],
[
"2022-05-24T00:00:00Z",
"txid moved to user_payout",
0.00014582889045275385303659990698,
0,
0
]
]
I think the right thing to do is
"payout": [
{
"key1": "2022-05-25T00:00:00Z",
"key2": "txid moved to user_payout",
"key3": 0.00014148402252361394091452898341,
"key4": 0,
"key5": 0
},
{
"key1": "2022-05-24T00:00:00Z",
"key2": "txid moved to user_payout",
"key3": 0.00014582889045275385303659990698,
"key4": 0,
"key5": 0
}
]
objectivezhou commented
Got,Thankyou!
weinianhuan commented
不上网了,有事邮箱了。