I am creating a Javascript / jQuery application.
I need to process the JSON response that the HashMap represents, for example:
{ "accounts": { "MediaFire": { "provider": "MediaFire", "usedStorage": "779680", "totalStorage": "53687091200" }, "4Sync": { "provider": "4Sync", "usedStorage": "620692", "totalStorage": "16106127360" } } }
I use the pasing function (which I cannot control), which returns the parsed JSON response in the result object.
When I try to access 4Sync as follows:
var usedStorage = result.accounts.4Sync.usedStorage;
it does not work, I think it is because of 4 at the beginning ... The same operation with another object works fine:
var usedStorage = result.accounts.MediaFire.usedStorage;
I know that the result object contains a 4Sync object, but I cannot access it. Here is a screenshot of the Chrome console:

Is there a way around the solution?
source share