fix issue with root array element in json payload

fix issue with root array element in json payload
fixes #197 
@Stephenitis or @rkononov  could you review and merge?