Title: Changing JSON Output
Last modified: August 30, 2016

---

# Changing JSON Output

 *  Resolved [burakbeceren](https://wordpress.org/support/users/burakbeceren/)
 * (@burakbeceren)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/changing-json-output/)
 * I have installed the plugin and worked a little bit on it. It is great thank 
   you for this. I just have 1 question. I am trying to show open/close status of
   ski lifts in a mountain and using below json import.
 * <i>[jsoncontentimporter url=”[http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/&#8221](http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/&#8221);
   numberofdisplayeditems=”30″ basenode=”data”] </i>
    <i>Tesis Numarası: {id}  </
   i> <i>Tesis İsmi: {title} </i> <i>Durumu: {status} </i> <i>[/jsoncontentimporter]
   </i>
 * The status comes as 0 (closed) or 1 (Open). How can I change the output and write
   0 as “closed” in the post ?
 * Thank you
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204241)
 * Hi,
 * Thank you for using my plugin. Yet the plugin displays only the text provided
   by json. There is no “replace 0 by close”. This idea is maybe something for the
   premium version to come.
 * What you can do: display only the open lifts with one shortcode, and below the
   closed lifts with another shortcode. To select the open lifts, use the requiredfieldvalue
   in the shortcode.
 * Bernhard
 *  Thread Starter [burakbeceren](https://wordpress.org/support/users/burakbeceren/)
 * (@burakbeceren)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204281)
 * If you are willing to put this functionality in the premium version, I will definetely
   buy it.
    So, as to your saying, there is no “requiredfieldvalue” as in your shortcode
   list. Do you mean to revise the shortcode as this;
 * [jsoncontentimporter url=”[http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/&#8221](http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/&#8221);
   numberofdisplayeditems=”30″ oneofthesewordsmustbein=”0″ basenode=”data”]
 * Tesis Numarası: {id} Tesis İsmi: {title} Durumu: {status}
 * [/jsoncontentimporter]
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204441)
 * Hi burakbeceren,
 * the pro-version will do what you (still?) need,
    see [http://json-content-importer.com/](http://json-content-importer.com/)
 * The template:
    [jsoncontentimporterpro url=”[http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/&#8221](http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/&#8221);
   requiredFieldsAndValues=”status=1″ requiredFieldsAndValuesDepth=”3″] {message}{
   subloop-array:data:-1}Tesis Numarasi: {data.id} Tesis Ismi: {data.title} DUrumu:{
   data.status} {/subloop-array:data} [/jsoncontentimporterpro]
 * Best
    Bernhard
 *  Thread Starter [burakbeceren](https://wordpress.org/support/users/burakbeceren/)
 * (@burakbeceren)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204444)
 * Dear berkux, thank you for the information,
 * My current requirement is as below. If you can provide all of these with the 
   support of JSON formatting, I will directly buy the plugin.
 * 1) [http://www.yr.no/place/Turkey/Bursa/Uludağ_Kaynak_Merkezi/forecast.xml](http://www.yr.no/place/Turkey/Bursa/Uludağ_Kaynak_Merkezi/forecast.xml)
   
   I need to take the weather forecast from this website
 * 2) [http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/](http://developer.beceren.com.tr/2apps/api/lift/app/iuludag/)
   
   I need to show ski lift status as “open” or “closed”. If possible, I would like
   to show these statuses with graphical buttons.
 * 3)http://developer.beceren.com.tr/2apps/api/activities/app/iuludag/
    I need to
   show the activities that will take place in the mountin.
 * 4) Road condition
    I need to show “user profile picture”, “name”, “surname” and“
   post”
 * 5) The wall
    I need to show “user profile picture”, “name”, “surname” , “photo(
   if applicable) and “post”.
 * All of these information will be gone under [http://www.uludaginfo.com](http://www.uludaginfo.com)
   which will be renovated soon. For example, “The Wall” menu is now under, [http://93.89.17.205/~uludag2/duvar/](http://93.89.17.205/~uludag2/duvar/)
   however, the JSON is not possible to show everything correctly in a good format.
 * So, considering all of these requirements above, is it possible to have these
   on website with your support and how much it costs to have it. Attached are some
   photos from our iPhone application which is live with name “Uludag Kayak Merkezi”.
   
   Screenshots: [https://www.dropbox.com/s/taqnf8008bunjip/screenshots.zip?dl=0](https://www.dropbox.com/s/taqnf8008bunjip/screenshots.zip?dl=0)
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204445)
 * Hi,
 * thank you for checking my Plugin.
 * 1. weather forecast:
    This is XML, my plugin only can handle JSON. [http://www.yr.no/place/Turkey/Bursa/Uludağ_Kaynak_Merkezi/forecast.xml](http://www.yr.no/place/Turkey/Bursa/Uludağ_Kaynak_Merkezi/forecast.xml)
   Maybe [http://api.openweathermap.org/data/2.5/weather?q=Uludag](http://api.openweathermap.org/data/2.5/weather?q=Uludag)
   or other services can give us JSON?
 * 2. The code for open/close ist the field status, or?
    This has a value of 0 yet,
   maybe 1 when open. If you name the button 0.gif or 1.gif the plugin can put together
   the right display of the status.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204446)
 * Hi,
 * I’ve saw the screenshots.
    Point 3 to 5 are somwhow special. Please contact me
   via info AT json-content-importer.com
 * Bernhard

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

The topic ‘Changing JSON Output’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/changing-json-output/#post-6204446)
 * Status: resolved