<?php $o = new stdClass; $o->aaa = 1; $a = [$o]; var_dump(json_encode($a));
You have javascript disabled. You will not be able to edit any code.