def to_python(self, data):
if isinstance(data, dict):<EOL><INDENT>return data<EOL><DEDENT>elif isinstance(data, six.string_types):<EOL><INDENT>try:<EOL><INDENT>return json.loads(data)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>raise ConversionException('<STR_LIT>', data=data)<EOL>
Parses the input data and converts it into a Python data structure
Input data might be:
    * a path which points to a JSON file
    * a URL which points to a JSON file
      (supported schemes: http, https, telnet)
    * a JSON formatted string
    * a dict representing a JSON structure