You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user ran into an issue where they were unable to parse a json stream due to "NaN" being present in their json stream.
com.fasterxml.jackson.core.JsonParseException: Non-standard token 'NaN': enable `JsonReadFeature.ALLOW_NON_NUMERIC_NUMBERS` to allow
While this isn't technically valid json, jackson does have explicit support for this (along with a variety of support for other options). We expose explicit ObjectMapper jsonSpec support in java, but don't have any easy wrappers around it for python. We might consider adding more options to json_spec to cover common use cases. In the meantime, this workaround was proposed for the user:
A user ran into an issue where they were unable to parse a json stream due to "NaN" being present in their json stream.
While this isn't technically valid json, jackson does have explicit support for this (along with a variety of support for other options). We expose explicit ObjectMapper jsonSpec support in java, but don't have any easy wrappers around it for python. We might consider adding more options to json_spec to cover common use cases. In the meantime, this workaround was proposed for the user:
This specific workaround is based around https://github.com/deephaven/deephaven-core/blob/v0.30.0/py/server/deephaven/stream/kafka/consumer.py#L430-L461 and https://github.com/deephaven/deephaven-core/blob/v0.30.0/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java#L24-L26.
(Note: jpy-consortium/jpy#117 filed.)
The text was updated successfully, but these errors were encountered: