Title: Import Data from MapIt
Last modified: August 22, 2016

---

# Import Data from MapIt

 *  Resolved [derrynairn](https://wordpress.org/support/users/derrynairn/)
 * (@derrynairn)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/import-data-from-mapit/)
 * Hi, thanks for the plugin, it looks great…
 * ..But I’m having trouble understanding how to import my JSON source.
 * Here is the source:
 * [http://mapit.mysociety.org/areas/WMC](http://mapit.mysociety.org/areas/WMC)
 * It’s a list of UK political constituencies and I would like to display their 
   names.
 * Can you help?
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/import-data-from-mapit/#post-5771763)
 * Hi derrynairn,
 * thanks for testing. The parser was confused by the empty “all_names” object and
   by “Ynys Môn”. The php-json-decoder can’t process the non-utf8-“ô”.
    I think 
   fixing this is possible.
 * In the end something like that should display the JSON:
    id: {id} codes: {subloop:
   codes:3}{gss}–{unit_id} {/subloop:codes} {type_name}
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/import-data-from-mapit/#post-5771866)
 * Hi derrynairn,
 * here we go:
    1. Install [https://downloads.wordpress.org/plugin/json-content-importer.1.1.1.zip](https://downloads.wordpress.org/plugin/json-content-importer.1.1.1.zip)
 * 2. Try:
    [jsoncontentimporter url=”[http://mapit.mysociety.org/areas/WMC”%5Did](http://mapit.mysociety.org/areas/WMC”%5Did):{
   id} codes: {subloop:codes:3}{gss}–{unit_id} END {/subloop:codes} {type_name}[/
   jsoncontentimporter]
 * does it work?

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

The topic ‘Import Data from MapIt’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/import-data-from-mapit/#post-5771866)
 * Status: resolved