Comments (3)
Thankyou for pointing out, I'm gonna look into this special case
from reton.
This problem can be fixed by using std::isnan and std::isinfstd::numeric_limits
My problem is when converting json2rton, if it reads a Infinity
, -Infinity
or NaN
, should it processes as string
or floating-point
type? And if it processes as floating-point
what if someone writes in json like this:
{"Infinity": "NaN"}
from reton.
If someone writes "Infinity": "NaN" in json this should definitely be treated as a string, no need to detect that.
Thanks for pointing this out, luckily in python with the json library allow_nan is set to True by default, so this doesn't cause issues in my python alternative to RETON.
from reton.
Related Issues (20)
- Pp.dat parse error HOT 7
- Error: vector::_M_range_check: __n (which is 112414) >= this->size() (which is 112414) HOT 3
- ENHANCEMENT: New feature, or a new tool to "ENCRIPT" .RTON files HOT 9
- Empty dictionaries are listed as "null" HOT 3
- I used the program to edit pp.dat Pvz2, but it did not open the game HOT 6
- Some files cannot be unpacked correctly HOT 3
- Feature request: Implement non-interactive use HOT 1
- Improving RTON format and hopefully some other issues HOT 2
- Rton-Json working fine, but json-rton not HOT 6
- 0x84 - empty rtid HOT 1
- "invalid vector subscript" HOT 8
- Exception when decode Unicode
- WRONG RTON number header hex 0x49 HOT 2
- Boundary Check&parsing problem HOT 5
- About rton>json>rton HOT 3
- Error reading pp.dat HOT 8
- Value type 0x40 HOT 1
- Another Error Reading pp.dat HOT 3
- The key type 0x52 cannot read HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reton.