I am unable to retrieve a value from a json object when the string has a dash character:
{ \"profile-id\":1234, \"user_id\":6789 }
If I try
jsonObj.profile-id is a subtraction expression (i.e. jsonObj.profile - id).
jsonObj.profile-id
jsonObj.profile - id
To access a key that contains characters that cannot appear in an identifier, use brackets:
jsonObj["profile-id"]