gluonts.shell.serve.util.
jsonify_floats
Traverses through the JSON object and converts non JSON-spec compliant floats(nan, -inf, inf) to their string representations.
json_object – JSON object