Replacing JSON with a string representation