[Olsr-dev] JSON can represent Infinity...

Hans-Christoph Steiner (spam-protected)
Thu May 10 00:14:25 CEST 2012



On 05/09/2012 06:10 PM, Hans-Christoph Steiner wrote:
> 
> So it turns out that JSON cannot represent Infinity in a 'int' or
> 'float' type.  Any ideas on how I should handle that?  How about I just
> make Infinity equal 0x7FFFFFFF for int, and 9.999999e96 for float?
> 
> .hc


I attached an example json dump from a 4 node mesh so you can get a
better idea of what it looks like.

.hc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all.json
Type: application/json
Size: 4729 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120509/154cb55a/attachment.json>


More information about the Olsr-dev mailing list