added is_valid to JSON Parse