Added use of json to check for equality in conversions