Do curly braces inside json string objects need to be escaped?

A.G. picture A.G. · Nov 9, 2013 · Viewed 29.6k times · Source

This string is part a JSON object/file:

"Mask" : "{0}(CASE WHEN {1} = {2} THEN {3} ELSE 0 END) {4}"

Will JSON recognize that as part of standard JSON notation or do I need to escape those curly braces s somehow?

If so, how does one escape curly braces in JSON?

Answer

Karthik picture Karthik · Nov 9, 2013

No. Curly braces do not have to be escaped in JSON.