<?php class C implements JsonSerializable { var $a = 'lol'; var $b = 'fa'; public function jsonSerialize() { return clone($this); } } echo json_encode(new C());
You have javascript disabled. You will not be able to edit any code.