Hi all,

I want to access vales from a json string in my app. I found the plugin “JSON Machine” that should handle this. But I don’t know how to use it.

Here’s my json string:

{
“questions”: [
{
“question”: “Was ist ITIL?”,
“options”: [
“Ein Framework für IT Service Management”,
“Eine Programmiersprache”,
“Eine Sammlung von Best Practices”,
“Ein Projektmanagement-Tool”,
“Ein Sicherheitsstandard”
],
“correct_answers”: [
“Ein Framework für IT Service Management”,
“Eine Sammlung von Best Practices”
]
},
{
“question”: “Welche der folgenden sind Kernkomponenten des ITIL-Servicelebenszyklus?”,
“options”: [
“Service Strategy”,
“Service Design”,
“Service Transition”,
“Service Governance”,
“Service Support”
],
“correct_answers”: [
“Service Strategy”,
“Service Design”,
“Service Transition”
]
},
{
“question”: “Welche Ziele verfolgt ITIL?”,
“options”: [
“Verbesserung der IT-Servicequalität”,
“Optimierung von IT-Kosten”,
“Steigerung der Agilität von Projekten”,
“Erhöhung der Kunden- und Nutzerzufriedenheit”,
“Automatisierung aller IT-Prozesse”
],
“correct_answers”: [
“Verbesserung der IT-Servicequalität”,
“Optimierung von IT-Kosten”,
“Erhöhung der Kunden- und Nutzerzufriedenheit”
]
}
]
}

I configured the plugin settings:

and also this one:

But I don’t know how to get the questions, answers,…

If I use this:

I’ll get:

But I want to display the string for question 2 for example.

Thanks,
jupxi

PS:
2. Any ideas about this: is there a way to set the datasource of a repeating group direct to a json result?

This topic was automatically closed after 70 days. New replies are no longer allowed.