• Resolved robinroos

    (@robinroos)


    Ok, here we go. I thought it would come to this!

    The JSON which I am trying to parse is horrible. Example attached (if I can attach files).

    My template:

    {id} / {subloop-array:field:3,3} {value} {/subloop-array:field} / {subloop-array:field:15,15} {valueId.jcix:####1##} {/subloop-array:field}<hr>

    Unfortunately it is evident that array indexes are inconsistent. field[3] is usually *but not always* the Summary. Field[15] is usually *but not always* the Status.

    To proceed I require a matcher capability, so that I can index into the field[] element for which name=”state” instead of relying on its index ordinal.

    Perhaps this is where the already awesome plugin becomes even more awesome. Or perhaps this is where I hit a wall.

    (I have raised these concerns about the JSON format to JetBrains who make YouTrack, but I cannot presume they will see my problem as a bug on their side – they likely presume I use XSLT for all my JSON processing, which is not the case here.)

    Bernhard, over to you.

    https://ww.wp.xz.cn/plugins/json-content-importer/

The topic ‘"Matcher" support for array indexing’ is closed to new replies.