<?php $o = new stdClass(); $o->foo = 1; $o->bar = 'bar'; $x = json_encode($o); echo $x;
You have javascript disabled. You will not be able to edit any code.