JSON-ify record inputs that are output as strings