JSON data infamously has an "encoding asymmetry" issue with PHP as whether a PHP array is encoded as a JSON object or JSON array is entirely determined by the keys of the PHP array. There should be a way to tell Leaf to decode JSON into a PHP object instead of the default behavior or decoding into an array.