Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Tried to parse same string in any other language? Like Python, also how big is the string you are parsing?
-
LMCodes1878y@vividvilla didn't think to try that. In the end I just cut a couple of redundant fields on the json and it's happier now. I believe it was topping out around character 1570000 - this was in Javascript.
-
LMCodes1878y@vividvilla Specifically it was Javascript in Firefox on Ubuntu 16.10 - if you can reproduce it I'd really like to hear!
-
Bikonja23868yNot saying there's no good reason for it or anything, but why such a long JSON string? Can you/does it make sense to do it maybe in batches or separate it or something?
-
LMCodes1878y@Bikonja I mean is laziness a good reason? :D in seriousness it's an internal tool for myself at work, I didnt want to sink too much time into it - hence editing the JSON to be about 1/2 the size by dropping some redundant-ish fields seemed the best solution in the end.
-
Bikonja23868y@LMCodes :) fair enough, if you compare my internal code and my commercial code it's a massive difference :) but hey, as long as it works :)
I think I hit the character limit in JSON.parse() but can't seem to find any documentation about it...
undefined
whatamidoing
json
javascript