Loading data to keen.io through json from array

Have never used keen.io through imp but looking at error response I wondered why you are creating another array here: keyst = format ("[{%s}]", keyst)

did you try this:
keyst = format ("{%s}", keyst)