Announcement

Collapse
No announcement yet.

XPath: count number of nodes in json feed

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • XPath: count number of nodes in json feed

    Hi,

    I'm creating a custom xml plugin to read data from feed streamer.

    I need the number of results per node. I'm using count() expression and I can't get a number of records back yet.

    Does anyone has another option since this one is not working.

    Expression below is not returning the number of "results" nodes in the xml which should be 10
    {count(//data/*results)}

    Any options or idea would be great.

    Thanks,
    Charlotte
    Attached Files

  • #2
    Forget Xpath for json. Xpath is for xml.

    http://forum.vizrt.com/forum/viz-con...ct-in-vbscript
    http://forum.vizrt.com/forum/viz-con...ad-to-template

    Comment


    • #3
      Thanks @meret,

      It was my syntax that was wrong in my xml plugin and my JSON feed was modified.

      //data/*results/name

      Comment

      Working...
      X