src/Genesis/Builders/JSON.php
public function populateNodes($structure)
    {
        try {
            $this->output = json_encode($structure);
        } catch (\Exception $e) {
            throw new \Genesis\Exceptions\InvalidArgument('Invalid data/tree');
        }
    }
public function populateNodes($structure)
    {
        try {
            $this->output = json_encode($structure);
        } catch (\Exception $e) {
            throw new \Genesis\Exceptions\InvalidArgument('Invalid data/tree');
        }
    }
public function populateNodes ( $ structure ) { try { $ this -> output = json_encode ( $ structure ) ; } catch ( \ Exception $ e ) { throw new \ Genesis \ Exceptions \ InvalidArgument ( 'Invalid data/tree' ) ; } }
Convert multi-dimensional array to JSON object

@param array $structure

@throws \Genesis\Exceptions\InvalidArgument

@return void
Convert multi - dimensional array to JSON object