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

后端 未结 6 597
失恋的感觉
失恋的感觉 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:36

    I'd try javacasting it: key = javacast("string", "yes"). That should force CF to recognize it as a string rather than as a boolean.

提交回复
热议问题