false,'error'=>'bad json']); exit; } $ok = config_apply($in); echo json_encode(['ok'=>$ok]);