image by BL
I was returning a large amount of data back to the client so I found you can override the default json max length in the web config to be the max length of int with the below snippet which solves the problem.
<jsonSerialization maxJsonLength=” 2147483647”/>
Found my answer in this SO post:
Nice collection of #pebble demos and code examples https://github.com/pebble/pebblekit/tree/master/Pebble