pygeek_stellar/utils/generic.py
def decode_json_content(content):
    """
    Decodes a given string content to a JSON object
    :param str content: content to be decoded to JSON.
    :return: A JSON object if the string could be successfully decoded and None otherwise
    :rtype: json or None
    """
    try:
        return json.loads(content) if content is not None else None
    except JSONDecodeError:
        print("The given content could not be decoded as a JSON file")
        return None

    Decodes a given string content to a JSON object
    :param str content: content to be decoded to JSON.
    :return: A JSON object if the string could be successfully decoded and None otherwise
    :rtype: json or None
    
Decodes a given string content to a JSON object
Decodes a given string content to a JSON object
def decode_json_content(content):
    try:
        return json.loads(content) if content is not None else None
    except JSONDecodeError:
        print("The given content could not be decoded as a JSON file")
        return None
def decode_json_content ( content ) : try : return json . loads ( content ) if content is not None else None except JSONDecodeError : print ( "The given content could not be decoded as a JSON file" ) return None
Decodes a given string content to a JSON object
Decodes a given string content to a JSON object
"""
    Decodes a given string content to a JSON object
    :param str content: content to be decoded to JSON.
    :return: A JSON object if the string could be successfully decoded and None otherwise
    :rtype: json or None
    """
A JSON object if the string could be successfully decoded and None otherwise
A JSON object if the string could be successfully decoded and None otherwise
json or None
content
content to be decoded to JSON.
content to be decoded to JSON .