<?php
$data = [
"null" => null,
- "bool" => true,
+ "true" => true,
+ "false" => false,
"int" => 123,
"double" => 123.123,
"string" => "foobar",
"object" => (object) ["prop" => "data"],
+ "list" => [1,2,3],
+ "hash" => ["foo" => "bar", 1 => 2],
];
echo $s = ion\serialize($data), "\n";
var_dump($data == ion\unserialize($s));
DONE
--EXPECTF--
TEST
-PHP::{'null':null,bool:true,int:123,double:12%f,string:"foobar",object:o::{prop:"data"}}
+{'null':null,'true':true,'false':false,int:123,double:12%f,string:"foobar",object:o::{prop:"data"},list:[1,2,3],hash:{foo:"bar",'1':2}}
bool(true)
DONE