<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def json_options_to_metadata(options, add_brackets=True):
 """Read metadata from its json representation"""

    try:
        options = loads('{' + options + '}' if add_brackets else options)
        return options
    except ValueError:
        return {}