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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Json parsing

I am trying to upload a json file and import into a database table.

I started with trying to parse out the json file and I am not sure what I am doing wrong.

Any help would be appreciated.

This is my set up and sample data 
[
{
"AssetId": null,
"ScanDate": {
"value": "\/Date(1575688499000)\/",
"DateTime": "Friday, December 6, 2019 10:14:59 PM"
},
"SiteId": null,
"OrgId": 999,
"ScanName": "Vulnerability-DomainControllers",
"ScanId": 8,
"FolderName": "My Scans",
"FolderId": 3,
"Description": "This plugin attempts to determine the type and the version of the remote web server.",
"Plugin Output": "The remote web server type is :\n\nMicrosoft-HTTPAPI/2.0",
"Plugin ID": "10107",
"CVE": "",
"CVSS": "",
"Risk": "None",
"Host": "es-tsv-dcs-101",
"Protocol": "tcp",
"Port": "5985",
"Name": "HTTP Server Type and Version",
"Synopsis": "A web server is running on the remote host.",
"Solution": "n/a",
"See Also": ""
},
{
"AssetId": null,
"ScanDate": {
"value": "\/Date(1575688499000)\/",
"DateTime": "Friday, December 6, 2019 10:14:59 PM"
},
"SiteId": null,
"OrgId": 999,
"ScanName": "Vulnerability-DomainControllers",
"ScanId": 8,
"FolderName": "My Scans",
"FolderId": 3,
"Description": "This plugin attempts to determine the type and the version of the remote web server.",
"Plugin Output": "The remote web server type is :\n\nMicrosoft-HTTPAPI/2.0",
"Plugin ID": "10107",
"CVE": "",
"CVSS": "",
"Risk": "None",
"Host": "es-tsv-dcs-101",
"Protocol": "tcp",
"Port": "47001",
"Name": "HTTP Server Type and Version",
"Synopsis": "A web server is running on the remote host.",
"Solution": "n/a",
"See Also": ""
}
]

0683p000009M9BB.png0683p000009M9OT.png0683p000009M9A3.png0683p000009M9La.png0683p000009M9Od.png

The output shows no data and I am not sure why

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello @jgillman1 

 

You don't need a tExtractJSONfield component to exrtract that JSON file

Use only a tFileInputJSON, i have taken your example and made a big part of the extraction :

0683p000009M8yw.png

- Note that you have blank spaces on some of your json keys,

Make sure to use a bracket structure to identify them correctly.

 

Regards,

¨Pierre

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hello @jgillman1 

 

You don't need a tExtractJSONfield component to exrtract that JSON file

Use only a tFileInputJSON, i have taken your example and made a big part of the extraction :

0683p000009M8yw.png

- Note that you have blank spaces on some of your json keys,

Make sure to use a bracket structure to identify them correctly.

 

Regards,

¨Pierre