Solved

Parse Configuration File in Json format

  • 3 April 2024
  • 1 reply
  • 27 views

I see an option option to parse json tables, however, I am not able to populate the “Data Scope”, which prevents me from moving forward. Is there a step that I’m missing?

 

 

Snippet of the config:

 

Device:
[
    {
        "_id": "abcdefg12345",
        "address": "",
        "dn": "abcdefg12345",
        "isRealDev": true,
        "isRealIntf": false,
        "mac": "abcdefg12345",
        "model": "device_model 1000",
        "name": "abcdefg12345",
        "networkName": "abcdefg12345",
        "opTime": {
            "$date": 1711950376000
        },
        "role": "primary",
        "serial": "abcd-efg1-2345",
        "tags": [
            "recently-added"
        ],
        "wan1Ip": "100.100.100.100",
        "wan2Ip": null

icon

Best answer by akverma 29 April 2024, 21:03

View original

1 reply

Hi @akatwaroo The Json format is not correct here.

if you just remove the “device:” from the beginning of the text, it works fine.

 

After the above text replacement, the json becomes good and parseable.

 

Reply


Community |  Ideas

Facebook |  Instagram |  Youtube |  Twitter |  LinkedIn
Privacy & Security Statement  |  Terms & Conditions |  Impressum  |  UK Modern Slavery Statement