Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to generate a JSON string contains Array?

On TOS 6.1, I am trying to generate a JSON string contains one Array element. There is a ArrayList type "imageIds" in input schema of tWriteJSONField, and bind to "element" field which is an loop element in output schema.
However, as in output, I found there's additional "[]":
{
    "accountid": "1",
    "token": "rAXRRuapwDsO5A",
    "initialContent": {
        "wxUserId": "o9-uWuNuTZgTW2p_FYzzZ5E2dGuA",
        "productType": "1",
        "description": "?????\n??",
        "serverPhotoIds": [     <-----unexpected
            [
                "60e5a503-0c23-11e6-a5c9-d1b1a1c2ca83",
                "610fc244-0c23-11e6-a5c9-43ab28439981",
                "61334fd5-0c23-11e6-a5c9-c3176c103283"
            ]
        ]                              <-----unexpected
    }
}
0683p000009MHGS.png
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hi
Don't need to set an attribute @class to serverPhotoIds element. 


Regards
Shong