Converts value to a JSON string. The method is intended to be used when `machine-readable` string is needed.
The value converted to a JSON string.