Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonstandard JSON structure #134

Open
Jzow opened this issue May 27, 2022 · 2 comments
Open

Nonstandard JSON structure #134

Jzow opened this issue May 27, 2022 · 2 comments

Comments

@Jzow
Copy link

Jzow commented May 27, 2022

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
Copy link

objectivezhou commented May 27, 2022 via email

@weinianhuan
Copy link

weinianhuan commented May 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants