fixed an error in the JSON creation for batchWriteItem