• Resolved bretzels

    (@bretzels)


    Hi Bernhard,

    I’m having trouble with this JSON – https://raider.io/api/v1/characters/profile?region=us&realm=Zul%27jin&name=Br%C3%A8tzels&fields=mythic_plus_scores_by_season%3Acurrent

    What I want to do is call the “all” value below.

    Here’s the code I got, doesn’t seem to work actually.

    [jsoncontentimporter url=https://raider.io/api/v1/characters/profile?region=us&realm=Zul%27jin&name=Br%C3%A8tzels&fields=mythic_plus_scores_by_season%3Acurrent] {subloop:mythic_plus_scores_by_season:-1}{subloop-array:mythic_plus_scores_by_season.scores:-1}{mythic_plus_scores_by_season.scores.all}{/subloop-array:mythic_plus_scores_by_season.scores}{/subloop:mythic_plus_scores_by_season} [/jsoncontentimporter]

    Think you can help me with that? Great plugin by the way!

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    try this:

    [jsoncontentimporter url=https://raider.io/api/v1/characters/profile?region=us&realm=Zul%27jin&name=Br%C3%A8tzels&fields=mythic_plus_scores_by_season%3Acurrent debugmode=10]
    name: {name}<br>
    {subloop-array:mythic_plus_scores_by_season:-1}
    mythic_plus_scores_by_season.season: {mythic_plus_scores_by_season.season}<br>
    {subloop:mythic_plus_scores_by_season.scores:-1}
    all: {mythic_plus_scores_by_season.scores.all}, spec_0: {mythic_plus_scores_by_season.scores.spec_0}
    {/subloop:mythic_plus_scores_by_season.scores}
    {/subloop-array:mythic_plus_scores_by_season} [/jsoncontentimporter]

    Bernhard

Viewing 1 replies (of 1 total)
  • The topic ‘Trouble with array’ is closed to new replies.