- json_decode: documentation ( source)
- get_object_vars: documentation ( source)
- json_encode: documentation ( source)
<?php
$object = json_decode('{"200": true}');
$data = get_object_vars($object);
$data['200'] = false;
echo json_encode($data, JSON_PRETTY_PRINT);
?>