• Resolved othmark

    (@othmark)


    Hello Klaus,

    your JSON-Importer works really well for part of my JSON nodes. – However – for node names with round brackets in their name such as “ozone (O3)” I cannot get it to work. See my two examples below. Example 1 works fine. In example 2 I just changed from “level 2” to “level (2)” – however the according adapted template for level (2) does not work. Since I do not have control over the JSON format, I could not use the Importer, since many of the node names I need to display have ( ) in their names. I also tried various quotes around the node names (straight single or double) – but this appears not to work at all. Do you have any tipp for me?

    Thank you for your support. Othmar

    P.S: For the basenode round brackets are not a problem – in both examples I have “Sensor (2)” as basenode without problem.

    JSON-Sample 1 and associated Template (works)
    {“Sensor (2)”:{“level 2”:[{“key”:”This is the first value of key in the ‘level 2’-array”},{“key”:”This is the second value of key in the ‘level 2’-array”},{“key”:”This is the third value of key in the ‘level 2’-array”},{“key”:”This is the fourth value of key in the ‘level 2’-array”}]}}
    Template:
    {subloop-array:level 2:-1}level 2: {level 2.key}<br>{/subloop-array:level 2}

    JSON-Sample 2 and associated Template (does not work)
    {“Sensor (2)”:{“level (2)”:[{“key”:”This is the first value of key in the ‘level (2)’-array”},{“key”:”This is the second value of key in the ‘level (2)’-array”},{“key”:”This is the third value of key in the ‘level (2)’-array”},{“key”:”This is the fourth value of key in the ‘level (2)’-array”}]}}
    Template
    {subloop-array:level (2):-1}level (2): {level (2).key}<br>{/subloop-array:level (2)}

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hallo othmark,

    leider verursachen ( bzw. ) in der Tat Probleme. In der n?chsten Version werde ich diese beheben.
    Besteht einstweilen die Chance auf ( und ) im JSON-Feldnamen zu verzichen.
    Danke für den Hinweis.

    Gru?
    Bernhard

    PS: Wer ist Klaus?

    • This reply was modified 3 years, 2 months ago by berkux.
    Thread Starter othmark

    (@othmark)

    Lieber Bernhard,

    ok – vielen Dank. (Sorry for the Klaus). Ich konnte die JSON Nodes umbenennen und nun l?uft es wie am Schnürchen!

    Gru?, Othmar

    • This reply was modified 3 years, 2 months ago by othmark.
    Plugin Author berkux

    (@berkux)

    Lieber Othmar,

    sehr gut. Falls Du Gelegenheit hast: Ich freue mich über ein Voting zum Plugin hier.

    Danke & Gru?
    Bernhard

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with JSON nodes with round brackets in their name’ is closed to new replies.