On the side of javascript this will do the job.
str={test1:'true',test0:'false'}
Object { test1: "true", test0: "false" }
str1 = JSON.stringify(str)
'{"test1":"true","test0":"false"}'
str1 = str1.replaceAll('"true"','true').replaceAll('"false"','false')
'{"test1":true, "test0":false}'
str = JSON.parse(str1)
Object { test1: true, test0: false }So i have to do it for python also. True and False replace by true and false.
- Log in to post comments