-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse input containing NaN and Infinity values
JSON standard does not allow NaN or Infinity, but some applications produce output that contains such values. One example of such application would be TensorFlow Serving[1]. An example of JSON parser that accepts NaN and Infinity is the one that comes with Python[2]. This commit introduces a new configuration parameter AllowNaN, that enables jsoniter to unmarshal input containing NaN and Infinity. 1. https://www.tensorflow.org/tfx/serving/api_rest#json_conformance 2. https://docs.python.org/3/library/json.html#infinite-and-nan-number-values
- Loading branch information
Showing
4 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters