def is_valid_json()

in generators/frontend/templates/src/frontend/app.py [0:0]


def is_valid_json(json_string): 
    """
    Validate if a string is properly formatted JSON.
    
    Args:
        json_string (str): The string to validate as JSON
        
    Returns:
        bool: True if string is valid JSON, False otherwise
    """
    try: 
        json.loads(json_string) 
        return True 
    except json.JSONDecodeError: 
        return False