Ad Widget

Collapse

My kingdom for help with JSON discovery problems..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abru
    Junior Member
    • Dec 2014
    • 3

    #1

    My kingdom for help with JSON discovery problems..

    Hello

    I am having major headache trying to solve this JSON discovery issue.. I have a JSON output with the following information:

    Code:
    {
        "domain": "testing",
        "web": {
            "servers": [
                "webserver1",
                "webserver2"
            ]
        },
        "mail": {
            "servers": [
                {
                    "preference": 10,
                    "hostname": "mailserver1"
                },
                {
                    "preference": 20,
                    "hostname": "mailserver2"
                }
            ]
        }
    }
    I need to get the web and mail servers as LLD objects -- how this possible?

    I can get the mail objects and items create as expected -- Prepossessing to
    Code:
    $.mail.servers
    and then LLD Macro to
    Code:
    $.hostname

    But I cannot get the web objects..

    Why cant I simply say -- Prepossessing to
    Code:
    $.web.servers
    and then LLD Macro to
    Code:
    $.[:]

    This does not get any errors BUT It is not creating any items -- I have tried other ways to reference the path but all seem to fail -- what is going on here.

    Is this that it needs to be in format item: value ?? how could i modify the input to get this -- seems simply enough.
Working...