Ian, It looks like there may be a problem with the API when its dealing with comment fields that have apostrophe's embedded in them. The json_decode() method is failing with *syntax *errors on the data that is returned by the get_depot() method. I was able to track it down to a few records where we have something like : *Bob's switch * in the comment field. it looks like we just need to escape the embedded apostrophes...Let me know if you need more details. Thanks. j.