<slide title="JSON">

<blurb fontsize="4em">JSON Improvements:</blurb>
<list><item>JsonSerializable</item></list>
<example fontsize="2em" result='0' title=""><![CDATA[<?php
class Foo implements JsonSerializable {
    private $data = 'Bar';
    public function jsonSerialize() {
        return array('data'=>$this->data);
    }
}
echo json_encode(new Foo); // Outputs: {"data":"Bar"}
]]></example>

<list><item>JSON Pretty Printer</item></list>
<example fontsize="2em" result='0' title=""><![CDATA[<?php
$a = array(1,2,3,array(4,5,6));
echo json_encode($a,JSON_PRETTY_PRINT);
]]></example>
<example fontsize="2em" result='0' title=""><![CDATA[
[
    1,
    2,
    3,
    [
        4,
        5,
        6
    ]
]
]]></example>

<list>
<item>JSON_UNESCAPED_SLASHES</item>
<item>JSON_NUMERIC_CHECK</item>
<item>JSON_BIGINT_AS_STRING</item>
<item>JSON_UNESCAPED_UNICODE</item>
</list>

</slide>
