• Resolved mrimman

    (@mrimman)


    I am trying to fetch data from the following JSON url-
    https://www.easports.com/iframe/fifa17proclubs/api/platforms/PC/clubs/48278/members

    It is very complex data for the likes of me. I have created the following-
    [jsoncontentimporter url=”https://www.easports.com/iframe/fifa17proclubs/api/platforms/PC/clubs/48278/members?format=json” numberofdisplayeditems=””][/jsoncontentimporter]
    But this does not show anything

    I have tried searching through this forum but did not find anything I could use.

    Can someone help me read and display the data?

    Data on the URL is-
    {"raw":[{"BnsWIblkQ5AUt-uBkdDuAA!!:D1WqVfQ4c0vWI_aJbQ8CwA!!":{"name":"Dawnlee_84","blazeId":"BnsWIblkQ5AUt-uBkdDuAA!!:D1WqVfQ4c0vWI_aJbQ8CwA!!","clubStatus":1,"onlineStatus":0},"Y9AUp9y9WmRZk8ydiMEMjg!!:2HwF4uyYF-h_HQOlmRVmlA!!":{"name":"Dante_Kai_Leo","blazeId":"Y9AUp9y9WmRZk8ydiMEMjg!!:2HwF4uyYF-h_HQOlmRVmlA!!","clubStatus":0,"onlineStatus":0},"FhTZTQh94hkxkXXlewP_9A!!:TJ1fsmrxJwJb00tfnb6QBQ!!":{"name":"SingleHandTyping","blazeId":"FhTZTQh94hkxkXXlewP_9A!!:TJ1fsmrxJwJb00tfnb6QBQ!!","clubStatus":0,"onlineStatus":0},"UO5QppDs_B12jn04DJEY2Q!!:RZtWsV2dwGDDAw20Ah-eNA!!":{"name":"-LK-ExNihilo","blazeId":"UO5QppDs_B12jn04DJEY2Q!!:RZtWsV2dwGDDAw20Ah-eNA!!","clubStatus":0,"onlineStatus":0},"5aEs8VFVfp0r2Usx_XmZLQ!!:LzeKAQ2-HxruyhrGluPuEg!!":{"name":"D0O0MSDAY","blazeId":"5aEs8VFVfp0r2Usx_XmZLQ!!:LzeKAQ2-HxruyhrGluPuEg!!","clubStatus":0,"onlineStatus":1},"A15rzhdcOEUxvCLtQDk4Gg!!:wehIM13vDLLvUVgbJcjLtQ!!":{"name":"AmerFikrie","blazeId":"A15rzhdcOEUxvCLtQDk4Gg!!:wehIM13vDLLvUVgbJcjLtQ!!","clubStatus":0,"onlineStatus":0}}]}

    I want to display the name and onlineStatus for all elements in there.

    If this can be done only through pro version, please give me a working example here. I am ready to buy as well. Anything to get this running, thanks for the help!

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

    (@berkux)

    Hi,

    unfortunately this type of JSON needs the PRO-Version, example see http://wptest.kux.de/easports/
    Done by this code:

    [jsoncontentimporterpro url=https://www.easports.com/iframe/fifa17proclubs/api/platforms/PC/clubs/48278/members?format=json parser=twig]
    {% for key, val in raw[0] %}
            <li>{{key}}: {{val.name}}</li>
    {% endfor %}
    [/jsoncontentimporterpro]
    • This reply was modified 8 years, 11 months ago by berkux.
    Thread Starter mrimman

    (@mrimman)

    Wow. Thats nice! Thanks a lot. Before I upgrade to pro version, I have a question, in the code you have specified above I do not see url being passes inside the jsoncontentimporter tags/shortcodes. How exactly does it get to know the url :S

    Plugin Author berkux

    (@berkux)

    There is a Shortcode-parameter url=http…
    This is for getting the JSON. The twig-code is evaluating the JSON.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JSON array data not showing up’ is closed to new replies.