change interface to expect json.RawMessage