[racktables-users] racktables Rest API

  • From: J Lee <juleedev@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Thu, 30 Aug 2012 11:06:43 -0400

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.

Other related posts:

  • » [racktables-users] racktables Rest API - J Lee