parameters: (file_path)
return_statement: return [item.encode('utf8') for item in data]
docstring: Read a JSON file that must contain a list, and return it.
docstring_summary: Read a JSON file that must contain a list, and return it.
docstring_tokens: Read a JSON file that must contain a list and return it .
function: def _ReadJsonList(file_path):
    """Read a JSON file that must contain a list, and return it."""
    with open(file_path) as f:
      data = json.load(f)
      assert isinstance(data, list), "JSON file %s is not a list!" % file_path
    return [item.encode('utf8') for item in data]
function_tokens: def _ReadJsonList ( file_path ) : with open ( file_path ) as f : data = json . load ( f ) assert isinstance ( data , list ) , "JSON file %s is not a list!" % file_path return [ item . encode ( 'utf8' ) for item in data ]