JSON API
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
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
1 Posted by Will Duncan on 09 Jul, 2008 11:23 PM
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 Posted by chris on 28 Jan, 2009 02:08 AM
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 Posted by Rick on 28 Jan, 2009 04:43 AM
Yes, there's a JSON api and it mirrors the XML one pretty much.
Rick closed this discussion on 28 Jan, 2009 04:43 AM.
chris re-opened this discussion on 28 Jan, 2009 03:46 PM
4 Posted by chris on 28 Jan, 2009 03:46 PM
So, instead of requesting something.xml, request something.json?
5 Posted by Rick on 28 Jan, 2009 03:55 PM
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 :)
6 Posted by System on 28 Jan, 2009 06:08 PM
A Lighthouse ticket was created for this discussion
7 Posted by david on 04 Mar, 2009 08:25 PM
I vote for this too. JSON is a much smaller transfer size so I use it from server-side over XML.
8 Posted by Will Duncan on 04 Mar, 2009 08:41 PM
David -- we have JSON available, just replace .xml
brandi closed this discussion on 29 Jun, 2012 10:08 PM.