For *viewing* json, I like to use the browser, plus a plugin like JsonView
(for Chrome):
https://chrome.google.com/extensions/detail/chklaanhfefbnpoihckbnefhakgolnmc
(it's a port of a Firefox plugin I haven't tried, but presumably it's also
good: http://benhollis.net/software/jsonview/ )

I'll have to check out http-console; I've seen it before, but thought of it
in terms of CouchDB - now our current app mostly speaks JSON, I might give
it a go for playing with our APIs; posting data via curl is still a bit
ugly.

- Korny

On Sun, Feb 20, 2011 at 1:02 PM, Mark Mansour <[email protected]> wrote:

> This may be heresy but I do this
>
> $ curl -s -H "AgileBench-Token: $TOKEN" -H "Content-type: application/json"
> http://agilebench.com/api/v1/projects/477/stories/15 | python -mjson.tool
>
> where $TOKEN is an environment variable.
>
> It works well and most people have python installed out of the box.
>
> Mark
>
>
> On Sun, Feb 20, 2011 at 12:40 PM, Ben Schwarz <[email protected]>wrote:
>
>>  Perhaps you should checkout https://github.com/cloudhead/http-console
>> <https://github.com/cloudhead/http-console>I only used it a couple of
>> times and kinda forgot it existed, until now.
>>
>> On Sunday, 20 February 2011 at 12:34 PM, Mike Bailey wrote:
>>
>> Sorry mate! Hope you can find another copy of them.
>>
>> Got any ideas on how to make curl automatically pass output through
>> prettify_json.rb if the response has "Content-Type: text/javascript"?
>>
>> - Mike
>>
>>
>> On Sun, Feb 20, 2011 at 12:10 PM, Gus Gollings <[email protected]>wrote:
>>
>> On Sun, Feb 20, 2011 at 11:51 AM, Mike Bailey <[email protected]> wrote:
>> > Good spotting Gus!
>> > What else did you have in your .curlrc?
>>
>> I had setup some different default Content-Type headers and logging
>> for different endpoints I regularly query for my linked data[1]
>> studies and some (I hate the RMIT network) proxy settings and some
>> other nick-knacks.
>>
>> Regards,
>>
>> Gus
>>
>> [1] http://linkeddata.org/
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>>
>>   --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>
>
>
> --
> Mark Mansour
> +61(4) 0535 0175
> http://agilebench.com/
> Follow Us on Twitter @agilebench
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>



-- 
Kornelis Sietsma  korny at my surname dot com http://korny.info
"Every jumbled pile of person has a thinking part
that wonders what the part that isn't thinking
isn't thinking of"

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to