def _convert_json_response_to_tables(response):
if response is None:<EOL><INDENT>return response<EOL><DEDENT>tables = _list()<EOL>continuation = _get_continuation_from_response_headers(response)<EOL>tables.next_marker = continuation.get('<STR_LIT>')<EOL>root = loads(response.body.decode('<STR_LIT:utf-8>'))<EOL>if '<STR_LIT>' in root:<EOL><INDENT>table = Table()<EOL>table.name = root['<STR_LIT>']<EOL>tables.append(table)<EOL><DEDENT>else:<EOL><INDENT>for element in root['<STR_LIT:value>']:<EOL><INDENT>table = Table()<EOL>table.name = element['<STR_LIT>']<EOL>tables.append(table)<EOL><DEDENT><DEDENT>return tables<EOL>
Converts the response to tables class.