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