Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

We have received a URL which is a JSON file apparently:

http://www.domain.com/tools/export-json/?destination=hawaii

I am completely clueless when it comes to JSON and Wordpress.

Anybody know where to start?

We will need to create individual posts from this JSON file I presume..

share|improve this question
    
There are some PHP native function like json_encode() and json_decode() –  JMau Jun 7 '13 at 18:31
add comment

1 Answer

up vote 0 down vote accepted
  1. json_decode the JSON into an array
  2. Loop into the data
  3. Create a post programmatically by following this tutorial: http://tommcfarlin.com/programmatically-create-a-post-in-wordpress/
share|improve this answer
    
Please try to include at least summary of information from URL into answer. Links tend to rot, making answers crippled. –  Rarst Jun 7 '13 at 21:17
    
ok thanks for this - it is useful info - if you are aware of any relevant wordpress plugins that would be great too.. –  Mario Lorenzo Jun 8 '13 at 12:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.