JSON API

jonahfox's Avatar

jonahfox

09 Jul, 2008 12:22 PM

Hi

Would it be possible to add on JSON as an API format ?

It would allow us to create some pretty neat Javascript widgets for Lighthouse. Currently this is blown out of the water by the XHR cross domain problem.

Just a json mime type on tickets.json with a function callback name as a parameter would do the trick.

cheers

Jonah

  1. 1 Posted by Will Duncan on 09 Jul, 2008 11:23 PM

    Will Duncan's Avatar

    We actually discussed this a few days ago, it was requested previously and it should not be a big deal to add tot he API.

  2. 2 Posted by chris on 28 Jan, 2009 02:08 AM

    chris's Avatar

    Did anything ever become of this? I'm exploring the API thinking of writing a perl OO module to interact with the API and JSON would be orders of magnitude easier to handle than XML.

  3. 3 Posted by Rick on 28 Jan, 2009 04:43 AM

    Rick's Avatar

    Yes, there's a JSON api and it mirrors the XML one pretty much.

  4. Rick closed this discussion on 28 Jan, 2009 04:43 AM.

  5. chris re-opened this discussion on 28 Jan, 2009 03:46 PM

  6. 4 Posted by chris on 28 Jan, 2009 03:46 PM

    chris's Avatar

    So, instead of requesting something.xml, request something.json?

  7. 5 Posted by Rick on 28 Jan, 2009 03:55 PM

    Rick's Avatar

    Yup, you'll get a comparable JSON hash of the details. Tickets will look something like {'ticket': {'title': 'foo', ...}}. You can see a Lighthouse ticket widget live on one of our open source project wikis.

    Also, please open a new discussion if you have any problems. I think we're sending jonahfox extra emails he may not want :)

  8. 6 Posted by System on 28 Jan, 2009 06:08 PM

    System's Avatar

    A Lighthouse ticket was created for this discussion

  9. 7 Posted by david on 04 Mar, 2009 08:25 PM

    david's Avatar

    I vote for this too. JSON is a much smaller transfer size so I use it from server-side over XML.

  10. 8 Posted by Will Duncan on 04 Mar, 2009 08:41 PM

    Will Duncan's Avatar

    David -- we have JSON available, just replace .xml

  11. brandi closed this discussion on 29 Jun, 2012 10:08 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac