# Scripts failing with large amounts of JSON data.

**URL:** https://forum.servoy.com/t/scripts-failing-with-large-amounts-of-json-data/9224
**Category:** Classic Servoy
**Created:** [June 24, 2008, 7:00pm UTC](https://forum.servoy.com/t/scripts-failing-with-large-amounts-of-json-data/9224 "2008-06-24T19:00:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ryanparrish](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@ryanparrish](https://forum.servoy.com/u/ryanparrish)
#### Post date: [June 24, 2008, 7:00pm UTC](https://forum.servoy.com/t/scripts-failing-with-large-amounts-of-json-data/9224/1 "2008-06-24T19:00:41Z")

</div>

Servoy Developer  
Version 3.5.6-build 519  
Java version 1.5.0\_13-119 (Mac OS X)

I am having weird problems when I am trying to load large (\>80K) amounts of JSON data into servoy. After I make the getPageData request and can see all my data in the string, I do an eval() on the data and the largest Array in the data set gets truncated off. All other data before and after the Array is there and the key to the object that points to where the array should be is there, but its value is null.

I know the JSON data is valid because I have tried parsing it with several different languages and libraries and they all de-serialize it just fine. Anyone else run into similar issues where data gets truncated for no apparent reason? I have tried it in Servoy4 and it does not fail so I think some bug must have been fixed between the two releases.

BTW…  
I am not using the plugin as I have never gotten it to work for anything but VERY simple JSON data (see [http://forum.servoy.com/viewtopic.php?t=10204](http://forum.servoy.com/viewtopic.php?t=10204) ), so I use eval().

---

<div class="post-metadata">

### Author: ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)
#### Post date: [June 30, 2008, 10:22am UTC](https://forum.servoy.com/t/scripts-failing-with-large-amounts-of-json-data/9224/2 "2008-06-30T10:22:59Z")

</div>

my guess is that this is then fixed by the new Javascript engine we use in Servoy 4.0. Because eval is not code of servoy itself.

---

<div class="post-metadata">

### Author: ![jbader](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jbader](https://forum.servoy.com/u/jbader)
#### Post date: [June 30, 2008, 12:22pm UTC](https://forum.servoy.com/t/scripts-failing-with-large-amounts-of-json-data/9224/3 "2008-06-30T12:22:18Z")

</div>

[http://forum.servoy.com/viewtopic.php?t=10701](http://forum.servoy.com/viewtopic.php?t=10701)
