• Resolved shyam1985

    (@shyam1985)


    Hi Team,

    I can able to get the “code” value, but can’t able to get “total” from JSON.

    1) JSON :

    {
    “_items”: [
    {
    “code”: “12344567”
    }
    ],
    “_meta”: {
    “total”: 28
    }
    }

    2) Basenode (JSON-node to start):
    _items

    3) Template :

    {subloop}
    code:{code} <br/>
    {/subloop}
    TOTAL:{total}
    • This topic was modified 3 years, 6 months ago by shyam1985.
    • This topic was modified 3 years, 6 months ago by shyam1985.
Viewing 1 replies (of 1 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    the usage of subloop is a bit different:

    {subloop:_items:-1}
    code:{code._items} <br/>
    {/subloop:_items}
    TOTAL:{total}

    Bernhard

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t able to get some value from JSON’ is closed to new replies.