parameters: (value)
return_statement: return json.loads(value)
docstring: It converts a JSON valid string representation to object.
  
      >>> result = json_str_to_object('{"a": 1}')
      >>> result == {'a': 1}
      True
docstring_summary: It converts a JSON valid string representation to object.
docstring_tokens: It converts a JSON valid string representation to object .
function: def json_str_to_object(value):  # type: (AnyStr) -> Any
      """
      It converts a JSON valid string representation to object.
  
      >>> result = json_str_to_object('{"a": 1}')
      >>> result == {'a': 1}
      True
      """
      if value == '':
          return value
  
      try:
          # json.loads accepts binary input from version >=3.6
          value = value.decode('utf-8')  # type: ignore
      except AttributeError:
          pass
  
      return json.loads(value)
function_tokens: def json_str_to_object ( value ) : # type: (AnyStr) -> Any if value == '' : return value try : # json.loads accepts binary input from version >=3.6 value = value . decode ( 'utf-8' ) # type: ignore except AttributeError : pass return json . loads ( value )