I am experiencing an interesting issue regarding JSONModel and the conversion of the string T to a BOOl
. I am getting passed a string value T in the JSON and need to convert it to a BOOL.
Using JSONModel, the conversion works on 64-bit devices, correctly converting T to a 1 (obviously some magic going on here). However, on a 32-bit device, the T is incorrectly converted to a 0. I am having trouble figuring out why this is happening and how to fix it.
I know that the JSONValueTransformer
BOOLFromNSString
is called for 32-bit devices, and returns NO, but it is not called for 64-bit devices.
Does anyone know more about the 32-bit/64-bit architecture and why this would happen? How can this be fixed so the correct BOOL value is returned on 32-bit and 64-bit devices?