Open GoogleCodeExporter opened 9 years ago
This actually appears to be related to handling of boolean JSON values. If,
instead of "False", the value of "test"
is undefined, then the PHP port gives the expected output.
$ php -f jsontemplate_cmd.php '{.repeated section list}{.section test}{@index}.
Test is
TRUE{.newline}{.or}{@index}. Test is
FALSE{.newline}{.end}{.end}' '{"list": [{"test": true},{},{"test": true},{}]}'
1. Test is TRUE
2. Test is FALSE
3. Test is TRUE
4. Test is FALSE
Original comment by brian.ho...@gmail.com
on 11 Feb 2010 at 1:22
Original comment by sroussey
on 18 Feb 2010 at 2:32
Original issue reported on code.google.com by
brian.ho...@gmail.com
on 10 Feb 2010 at 9:36