JSON serialization of NaNs

12 views
Skip to first unread message

Colin Adams

unread,
Feb 1, 2019, 10:42:27 AM2/1/19
to eiffel-web-framework
Not sure if this is the right mailing list for this library or not.

You can create a JSON_NUMBER by passing a NaN to make_real. This gets serialized as NaN, which causes a parse error by JSON_PARSER (correctly, as JSON does not support NaNs or infinities). This should be serialized as null.

Jocelyn Fiat

unread,
Feb 5, 2019, 6:50:55 AM2/5/19
to eiffel-web-framework
Hi Colin,

I will check the code about that in the following days.

On Fri, Feb 1, 2019 at 4:42 PM Colin Adams <colinpa...@gmail.com> wrote:
Not sure if this is the right mailing list for this library or not.

You can create a JSON_NUMBER by passing a NaN to make_real. This gets serialized as NaN, which causes a parse error by JSON_PARSER (correctly, as JSON does not support NaNs or infinities). This should be serialized as null.

--
--
You received this message because you are subscribed to the Google
Groups "Eiffel Web Framework" group.
 
To post to this group, send email to
eiffel-web...@googlegroups.com
To unsubscribe from this group, send email to
eiffel-web-frame...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eiffel-web-framework
 
See the site for the Eiffel-Web-Framework project at
https://github.com/EiffelWebFramework/EWF
---
You received this message because you are subscribed to the Google Groups "Eiffel Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-web-frame...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Jocelyn
------------------------------------------------------------------------
Eiffel Software
https://www.eiffel.com
Customer support: https://support.eiffel.com
User group: https://groups.google.com/forum/#!forum/eiffel-users
------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages