Added handling of mapping results into JSON and MsgPack codecs