fixed json_encode filters