Fixing and testing json-stringify transformation.