I am trying to encode an array which contains floats and NaN
into JSON string from Python using json.dumps()
.
But the encoded JSON string is not being decoded successfully in PHP. Is the NaN
causing this problem? How can I work around this situation?