update to incorporate website supplied json

- a bug with sending large arrays to the API means we need to ingest
the array as json, decode it and set it as a var. ignored if the zero
position array isn’t there.