1

I am using the Rest plugin.

Let us say that my API outputs a JSON like this

{
  "8741" : "some data 1 ...",
  "27848" : "some data 2 ...",
  ...
} 

I want to access the data via its index. I will know what the index is at runtime. So how do I access the data?

{exp:rest ...}
 {8741}  <-- can't define this literally since the index is going to be set at runtime
{/exp:rest} 
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.