Title: Obtaining Json from URL
Last modified: October 11, 2021

---

# Obtaining Json from URL

 *  Resolved [Steve Fulton U.E](https://wordpress.org/support/users/ogs2017/)
 * (@ogs2017)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/)
 * Good Morning
 * I am trying to call this data from Veterns Canada Website to my own website. 
   Since the URL they provide doesn’t end in json but they say it is in that format
   could you give me some direction please.
 * The URL they provide is: [http://www.veterans.gc.ca/xml/jsonp/app.cfc?method=remoteGetHonourRoll&callback=?&language=en](http://www.veterans.gc.ca/xml/jsonp/app.cfc?method=remoteGetHonourRoll&callback=?&language=en)
 * Thanks
 * Steve Fulton, UE
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fobtaining-json-from-url%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/#post-14960139)
 * Hi,
 * try
    `[jsoncontentimporter url=https://www.veterans.gc.ca/xml/jsonp/app.cfc?method
   =remoteGetHonourRoll&language=en basenode=days]{CASUALTY} - {FORENAMES}<br>[/
   jsoncontentimporter]`
 * the callback=? invalidated the JSON…
 * Bernhard
 *  Thread Starter [Steve Fulton U.E](https://wordpress.org/support/users/ogs2017/)
 * (@ogs2017)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/#post-14960167)
 * Hi there
 * Thanks for the Shortcode – It did bring in the data but unformatted? Anything
   i can do to resolve this?
 * Please see url: [https://canadianheadstones.ca/wp/honour-roll-test/](https://canadianheadstones.ca/wp/honour-roll-test/)
 * Thanks
 * Steve
 *  Thread Starter [Steve Fulton U.E](https://wordpress.org/support/users/ogs2017/)
 * (@ogs2017)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/#post-14960171)
 * Hi there
 * Forgot to mention, the Block did not install or i am unable to find it so i have
   to do all by shortcode.
 * Thanks
 * Steve
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/#post-14960270)
 * Hi Steve,
 * when using the shortcode copypaste into the text-filed, not the html-field.
    
   You may switch the texteditor.
 * Bernhard
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/#post-14963958)
 * Hi,
 * the gutenberg Block goes by “JCI”. You might search in the Blocks for it.
    [http://api.json-content-importer.com/veterans/](http://api.json-content-importer.com/veterans/)
   is done by the block and
 *     ```
       {subloop-array:days:-1}
       {DATE_OF_DEATH}: {CASUALTY}, {FORENAMES} {SURNAME}<br>
       {/subloop-array:days}
       ```
   
 * or with the shortcode:
 *     ```
       [jsoncontentimporter url=https://www.veterans.gc.ca/xml/jsonp/app.cfc?method=remoteGetHonourRoll&language=en]{subloop-array:days:-1}
       {DATE_OF_DEATH}: {CASUALTY}, {FORENAMES} {SURNAME}<br>
       {/subloop-array:days}[/jsoncontentimporter]
       ```
   
 * Bernhard

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

The topic ‘Obtaining Json from URL’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)

 * 5 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/obtaining-json-from-url/#post-14963958)
 * Status: resolved