<?php class Foo { public $ddd = 'hello'; function jsonSerialize() { return 'foobar'; } } var_dump(json_encode(new Foo));
You have javascript disabled. You will not be able to edit any code.