Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have custom pluggin that returns a JToken as bellow.
[{"Heading":{"Text":"Trade Center","Tag":"h1"},"SubHeading":{"Text":"","Tag":"h1"}}]
the nested field aliase is "frameHeading"
on the nested templae field i have {{frameHeading}}
which returns an item name of [{"Heading":{"Text":"Trade Center","Tag":"h1"},"SubHeading":{"Text":"","Tag":"h1"}}]
How do I decode this in the template field to "Trade Center"
[ { "Heading":{ "Text":"Trade Center", "Tag":"h1" }, "SubHeading":{ "Text":"", "Tag":"h1" } } ]
With it being an array of objects, it would have be something like the following: {{frameHeading[0].Heading.Text}}
Thanks Ryan. Solved
That's so simple.
Glad I could help!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
nested item name extracted from JSON value
I have custom pluggin that returns a JToken as bellow.
[{"Heading":{"Text":"Trade Center","Tag":"h1"},"SubHeading":{"Text":"","Tag":"h1"}}]
the nested field aliase is "frameHeading"
on the nested templae field i have {{frameHeading}}
which returns an item name of [{"Heading":{"Text":"Trade Center","Tag":"h1"},"SubHeading":{"Text":"","Tag":"h1"}}]
How do I decode this in the template field to "Trade Center"
With it being an array of objects, it would have be something like the following: {{frameHeading[0].Heading.Text}}
Thanks Ryan. Solved
That's so simple.
Glad I could help!
is working on a reply...