Hi @KK,
I am about to send a boolean in JSON response.
I am using php to pass a boolean value to a variable, but since CouchCMS converts boolean true to string 1 while setting a variable's value - I can not achieve my goal easily.
I really don't want to write a 'form_status' array parser to replace 'true' to true or '1' to true. But I'd have to if you say there is no other way.
I am about to send a boolean in JSON response.
- Code: Select all
{"response":true,"message":""}
I am using php to pass a boolean value to a variable, but since CouchCMS converts boolean true to string 1 while setting a variable's value - I can not achieve my goal easily.
I really don't want to write a 'form_status' array parser to replace 'true' to true or '1' to true. But I'd have to if you say there is no other way.