Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Support Empty Object
- Input: {}
- Output: {}
- Input: { }
- Output: {}
- Support simple Object float value
- Input: { "PI":3.141E-10}
- Output: {"PI":3.141E-10}
- Input: { "PI" : 3.141E-10 }
- Output: {"PI":3.141E-10}
- Support lowcase float value
- Input: { "PI":3.141e-10}
- Output: {"PI":3.141E-10}
- Input: { "PI" : 3.141e-10 }
- Output: {"PI":3.141E-10}
- Bigint number support
- Input: { "v":123456789123456789123456789}
- Output: {"v":1.2345678912345679E26}
- Array of empty Object
- Input: [ { }, { },[]]
- Output: [{},{},[]]
- Input: [ { } , { } ,[ ]]
- Output: [{},{},[]]
- Double precision floating point
- Input: { "v":1.7976931348623157E308}
- Output: {"v":1.7976931348623157}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement