criver

nan should be NaN

Discussion created by criver on Nov 29, 2012
Latest reply on Dec 28, 2012 by njarecha-esristaff
As returned from a call to [AGSMapServiceInfo encodeToJSON]

tileInfo =             {
                cols = 0;
                dpi = 0;
                lods =                 (
                );
                origin =                 {
                    x = nan;
                    y = nan;
                };
                rows = 0;
                spatialReference =                 {
                };
            };


"nan" chokes NSJSONSerialization as it isn't a valid number. Should be "NaN".  is there a workaround or fix for this?  Right now I'm doing a replace, which is ugly.

Thanks!

Outcomes