Hi Monks, I have a data structure that I'm converting to a json string, which I then write to a file. The json file is used for a database. To convert the strings containing only digits to numbers, I add zero and then store in the structure. For some reason, when I look at the json file, some strings that were supposed to be converted to integers are still strings. Is there any way to guarantee a string is converted to a integer? Thanks!
So a data dump looks good: 'cl_ip' => 209889, But there's a string in the json file for this key: "cl_ip":"209889"In reply to String to Integer, for json file by halecommarachel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |