Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
FelipeFuku
Partner - Contributor III
Partner - Contributor III

Loading a JSON file in QlikSese

Hello,

I 'm trying to load into the script a JSON file that is really large. It has more than 10 million lenght so.. 
I couldn't find a doable way to set it correctly

If anyone knows how to do it, please, I appreciate it.

Thanks in advance,
Fukumoto. 

3 Replies
fosuzuki
Partner - Specialist III
Partner - Specialist III

Hi, I've recenntly found out a way to parse a JSON string into a table. Check the sample code:

Table:
load '[
    {
        "date": "2019-04-04",
        "agency": "aaa",
        "revenue": 55
    },
    {
        "date": "2019-04-04",
        "agency": "bbb",
        "revenue": 45
    },
    {
        "date": "2019-04-03",
        "agency": "aaa",
        "revenue": 52
    },
    {
        "date": "2019-04-03",
        "agency": "bbb",
        "revenue": 42
    }
]' as JSON
AutoGenerate (1);

load *
FROM_FIELD
(Table, JSON)
(json, utf8, no labels);

drop table Table;

Hope this helps.

FelipeFuku
Partner - Contributor III
Partner - Contributor III
Author

Hello Fosuzuki,

Thank you, I'll try it and let you know if it worked!

Thanks,
Fukumoto.
CasperQlik
Contributor III
Contributor III

I get the following error when I use the From_Field function:

CasperQlik_0-1695719972461.png

 

This is my code:

 

CasperQlik_1-1695720069255.png

Any help is appreciated!