How can I prevent SerializeJSON from changing Yes/No/True/False strings to boolean?

后端 未结 6 576
失恋的感觉
失恋的感觉 2020-12-20 12:19

I have a data struct being stored in JSON format, converted using the serializeJSON function. The problem I am running into is that strings that can be boolean in CF such as

6条回答
  •  有刺的猬
    2020-12-20 12:52

    Adding an extra space in the string to prevent it from being converted to boolean, then trim at a later stage.

提交回复
热议问题