Essentially doing just “String” is fine, but ‘Doing using this causes pink/red invalid syntax highlighting’.
JSON Invalid Syntax Highlighting because of 'Literal String'?
PRAGMA
#1
0 Likes
ThomSmith
#2
JSON strings are double-quoted. You’re trying to single-quote a string, which is not valid JSON. The core JSON syntax marks an incorrectly quoted string as an error.
0 Likes
ThomSmith
#4
It sounds like you’re using a tool that accepts some other format that’s a superset of JSON. That format may have highlighting available; or, if it’s a subset of YAML, you could try that syntax.
0 Likes