transcode encoder json