Which characters are valid/invalid in a JSON key name?

Are there any forbidden characters in key names, for JavaScript objects or JSON strings? Or characters that need to be escaped?

To be more specific, I’d like to use “$”, “-” and space in key names.

4 Answers
4

Leave a Comment