Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER 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. 

2 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.