import json


def index_by_rev_id(s):
  """Pair a rev_id with a JSON string.

  Args:
    s: a JSON dict.

  Returns:
    A tuple of rev_id and the unparsed JSON string.
  """
  return (json.loads(s)['rev_id'], s)