Need help parsing data
in
Programming Questions
•
2 years ago
I'm trying to make a visualization for processing that parses JSON data into a nice chart. So far i've got processing loading the JSON data as a large string (i think) but i cannot go anywhere from here.
The data I get returned to me is:
{"username": "USR_NAME", "unconfirmed_reward": "0.00000000", "send_threshold": "0.00000000", "confirmed_reward": "0.00000000", "workers": {"Worker1": {"last_share": 0000000000, "score": "000000.0000", "alive": true, "shares": 00, "hashrate": 00}, "Worker2": {"last_share": 0000000000, "score": "0", "alive": false, "shares": 0, "hashrate": 0}}, "wallet": "WALLET_ID", "estimated_reward": "0.00000000"}
I've tried some examples (and found the new york times JSON example especially helpful) but i just cannot get the info stored into a data format I can handle (mainly floats)
Any help on this would be greatly appreciated as I'm totally lost (googling "processing JSON" and every iteration i can think of has only proven to be mildly helpful)
1