Another action that is automatically performed when JSON is generated by using the FOR JSON clause is escaping special characters from text columns according to JSON's escaping rules. The rules are explained in detail in the Primitive JSON data types section earlier in this chapter.