4 * Output formatter 'json'
7 * The $data parameter is converted to Javascript Object Notation
14 * "a" => array("b" => 2, "c" => 3),
15 * "d" => array("e" => 5, "f" => 6)
18 * Output with --format=json:
20 * {"a":{"b":2,"c":3},"d":{"e":5,"f":6}}
22 class drush_outputformat_json extends drush_outputformat {
23 function format($input, $metadata) {
24 return drush_json_encode($input);