News for hackers. Stuff that matters.
Re:Show HN: SWAPI – A Star Wars API by wise_young_man on Friday December 05, 2014 @11:21AM (#8705247)
What if the integer exceeds the maximum allowed on 32 bit machines and you try to decode the JSON?
Re:Show HN: SWAPI – A Star Wars API by djtriptych on Friday December 05, 2014 @11:25AM (#8705268)
That has nothing to do with JSON, which allows numbers of arbitrary size.
Re:Show HN: SWAPI – A Star Wars API by paulhallett on Friday December 05, 2014 @11:25AM (#8705269)
This is mostly just a typo in the examples I put, but I will consider using only strings for this type of stuff, to avoid issues.
Re:Show HN: SWAPI – A Star Wars API by idlewan on Friday December 05, 2014 @11:29AM (#8705292)
Given the dataset you have to serve, I don't think you'll be having any issues if most of the JSON parsers give you 32bit integers.