Fix JSON NaN
Fix JSON NaN

Hi,

The attached patch fixes the JSON generation when dealing with NaN (not
a number), this makes the JSON parsing in the web browser succeed
(before it would get a "nan" which is not a valid JS value)

Chris

git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8573 ab181a69-ba2e-0410-a84d-ff88ab4c47bc

zwhfly/openwrt-luci,Flexibity/luci,jschmidlapp/luci,eugenesan/openwrt-luci,jschmidlapp/luci,saraedum/luci-packages-old,Flexibity/luci,zwhfly/openwrt-luci,freifunk-gluon/luci,8devices/carambola2-luci,ch3n2k/luci,stephank/luci,8devices/carambola2-luci,Canaan-Creative/luci,ReclaimYourPrivacy/cloak-luci,freifunk-gluon/luci,ThingMesh/openwrt-luci,saraedum/luci-packages-old,jschmidlapp/luci,ch3n2k/luci,Canaan-Creative/luci,vhpham80/luci,ReclaimYourPrivacy/cloak-luci,Canaan-Creative/luci,saraedum/luci-packages-old,gwlim/luci,stephank/luci,saraedum/luci-packages-old,freifunk-gluon/luci,jschmidlapp/luci,Canaan-Creative/luci,eugenesan/openwrt-luci,phi-psi/luci,ReclaimYourPrivacy/cloak-luci,freifunk-gluon/luci,zwhfly/openwrt-luci,eugenesan/openwrt-luci,yeewang/openwrt-luci,ReclaimYourPrivacy/cloak-luci,ch3n2k/luci,zwhfly/openwrt-luci,ReclaimYourPrivacy/cloak-luci,ThingMesh/openwrt-luci,saraedum/luci-packages-old,ReclaimYourPrivacy/cloak-luci,eugenesan/openwrt-luci,ch3n2k/luci,8devices/carambola2-luci,8devices/carambola2-luci,ThingMesh/openwrt-luci,jschmidlapp/luci,stephank/luci,phi-psi/luci,gwlim/luci,Flexibity/luci,ThingMesh/openwrt-luci,8devices/carambola2-luci,8devices/carambola2-luci,phi-psi/luci,freifunk-gluon/luci,gwlim/luci,vhpham80/luci,yeewang/openwrt-luci,ReclaimYourPrivacy/cloak-luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,gwlim/luci,yeewang/openwrt-luci,phi-psi/luci,Flexibity/luci,vhpham80/luci,Canaan-Creative/luci,phi-psi/luci,vhpham80/luci,Flexibity/luci,Canaan-Creative/luci,yeewang/openwrt-luci,jschmidlapp/luci,eugenesan/openwrt-luci,jschmidlapp/luci,zwhfly/openwrt-luci,zwhfly/openwrt-luci,phi-psi/luci,saraedum/luci-packages-old,Flexibity/luci,freifunk-gluon/luci,stephank/luci,stephank/luci,ThingMesh/openwrt-luci,gwlim/luci,ThingMesh/openwrt-luci,Canaan-Creative/luci,ch3n2k/luci,vhpham80/luci,freifunk-gluon/luci,stephank/luci,Flexibity/luci,eugenesan/openwrt-luci,eugenesan/openwrt-luci,Flexibity/luci,yeewang/openwrt-luci,gwlim/luci,yeewang/openwrt-luci,8devices/carambola2-luci,ThingMesh/openwrt-luci,vhpham80/luci,yeewang/openwrt-luci,ch3n2k/luci,gwlim/luci,zwhfly/openwrt-luci,zwhfly/openwrt-luci,jschmidlapp/luci,zwhfly/openwrt-luci,Canaan-Creative/luci,freifunk-gluon/luci,phi-psi/luci,saraedum/luci-packages-old