0

Can you think of any valid URLs that would break the key string naming rules of JS Object literals or JSON?

eg. { 'http://foo': { 'response-data': 'foo' } }

The JSON spec mentions something about solidus "/" needing to be escaped, but the example above seems to work fine.

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

http://www.json.org

4m1r
  • 12,234
  • 9
  • 46
  • 58

0 Answers0