Add exit after json_encode()