[Catalyst] Catalyst::View::JSON sends a file
    Tomas Doran 
    bobtfish at bobtfish.net
       
    Tue Jan 12 00:03:35 GMT 2010
    
    
  
On 11 Jan 2010, at 23:29, Christoph Friedrich wrote:
> just worked a little with Catalyst::View::JSON. But when I call some  
> action via Firefox that uses this View Firefox gives me a file to  
> download and don't show the json directly.
> Is there a way to change this behavior? I want to see what I would  
> get as JSON and not download it ^^
Your browser will do whatever it normally does with the mime type  
you're sending.
By changing settings or mime types you'll probably be able to convince  
it to display the JSON.
However, why not write a JSON debug view that pretty prints JSON  
responses inside an HTML page?
Cheers
t0m
    
    
More information about the Catalyst
mailing list