SyntaxFix
Write A Post
Hire A Developer
Questions
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"]