How to parse JSON file in a discovery pattern

Antal1
Tera Contributor

How do I parse a JSON file with a "Parse file" operation? I cannot find any example on docs site.

Example:

{ 
    "stuff": {
        "onetype": [
            {"id":1,"name":"John Doe"},
            {"id":2,"name":"Don Joeh"}
        ],
        "othertype": {"id":2,"company":"ACME"}
    }, 
    "otherstuff": {
        "thing": [[1,42],[2,2]]
     }
}
7 REPLIES 7

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

 

User JSON.Parse


Thanks,
Ashutosh Munot

Example?

Narayan2
Mega Expert

Hi,

 

Refer below URL:

https://docs.servicenow.com/bundle/kingston-it-operations-management/page/product/service-mapping/task/t_ParseFilePatDef.html

 

 

Regards,

Narayan

Antal1
Tera Contributor

More specifically?