Fix incoming and outgoing translation for json keys