Like the other answers stated, Infinity
is not part of the values JSON can store as value.
You can reverse the censor method on parsing the JSON:
var c = JSON.parse(b, function (key, value) {
return value === "Infinity" ? Infinity : value;
});
More Related Contents:
- Serializing object that contains cyclic object value
- Stringify (convert to JSON) a JavaScript object with circular reference
- How to stringify event object?
- Convert javascript object or array to json for ajax data
- JSON.stringify deep objects
- Javascript: stringify object (including members of type function)
- JSON.stringify output to div in pretty print way
- Why does JSON.stringify return empty object notation “{}” for an object that seems to have properties?
- Why does Google prepend while(1); to their JSON responses?
- Unable to access JSON property with “-” dash
- How to check if a string is a valid JSON string?
- React JS – Uncaught TypeError: this.props.data.map is not a function
- How do I create JavaScript array (JSON format) dynamically?
- Is there any practical reason to use quoted strings for JSON keys?
- Ways to save Backbone.js model data?
- Using reserved words as property names, revisited
- Are all JSON objects also valid JavaScript objects?
- Parsing JSON w/ @ at sign symbol in it (arobase)
- Changing getJSON to JSONP
- Accessing elements of JSON object without knowing the key names
- Chrome re-ordering object keys if numerics, is that normal/expected
- Whats the difference between using a class and interface?
- Construct hierarchy tree from flat list with parent field? [duplicate]
- jQuery: Evaluate script in ajax response
- Parsing Date from webservice
- Count console.log objects
- JavaScript/JSON: Get unknown property of an object
- How to parse JSON easily?
- Safely parsing a JSON string with unquoted keys
- How to add local json file in jsfiddle?