Thanks @SamC, I understand.
I kind-of did it in a test environment, let me explain the full case scenario:
A local (and really small) movie theater in my area was looking for a web designer to help them out with their website and primarily their ticket management integration. They absolutely need to sell their tickets on-line.
I quickly jumped in to start the negotiations around budget, best solution, how to manage the whole thing, ecc.
During our chats I found that there was a widely used ticket management service in Italy called Wintic/Webtic, it is used in around 70% of cinemas in Italy and I knew that very probably I would have to integrate that sooner or later.
So I started calling the software house regarding their ways to integrate the whole "thing" in an existing portal.
They told me that they made available a webservice with the cinema schedule and send me a link to the JSON
I was frightened! Being this the first time I've found myself in a situation (that I was actively avoiding) where I just needed to step out of my relatively comfy zone of CMSs and tackle the issue as best as I could and in a budget friendly way. (The integration with Wordpress is just a headache to think about compared with Processwire)
Then I started to read (many times) all the threads regarding JSON import and this one really helped me out understanding the whole process.
From that thread and a couple of others I modified the script and now it looks like this: https://gist.github.com/protorob/e6050c78b4bee2dbce59c38234afa0de
In the end I came out with a functional mockup that you can find here: http://webtic.artomultiplo.net/ and accepted the job. Full of courage.
Now I have a whole lot of new questions regarding the best way to wrap it out, so expect to see me around a little more this time.
I'm planing to document the whole process in a very long blog post
Now my main "concerns" are regarding:
- Automate the create/modify/delete of the schedule comparing differences between the current JSON and a New one
- Adding extra information to the events and not losing them when the schedule re-synchronize
- Working with AJAX Load more for some parts of the website
- Handling the blog
I know I'll need a little bit of help specially with the importing script.
I'll let you know how it goes