Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: Depth can be any value .> 0. However, all details above field in question will be added to output


JSON Viewer
width400
height350
{
    "transition-function": {
        "delta": [
            {
                "output": {
                    "state": 1
                }
            },
            {
                "output": {
                    "state": 3
                }
            },
            {},
            {
                "output": {
                    "state": 4
                }
            },
            {},
            {
                "output": {
                    "state": 2
                }
            },
            {}
        ]
    }
}


Can also work with multiple fields as above

http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?fields=delta/output/state;symbol&depth=2


JSON Viewer
width400
height350
{
    "transition-function": {
        "delta": [
            {
                "output": {
                    "state": 1,
                    "symbol": "1"
                }
            },
            {
                "output": {
                    "state": 3,
                    "symbol": "0"
                }
            },
            {},
            {
                "output": {
                    "state": 4
                }
            },
            {},
            {
                "output": {
                    "state": 2
                }
            },
            {}
        ]
    }
}

...