@json and @jsonp #47

Closed
Radagaisus opened this Issue Sep 22, 2012 · 6 comments

Comments

Projects
None yet
3 participants

Hi,

Just like we have @send I think we should have @json.

There was a recent commit to express that separated json and jsonp requests. I used a small middleware for this so far, but it will be nice to support this as well.

Owner

shimaore commented Sep 23, 2012

@json is in the routes.

I'm all for explicit semantics, so @jsonp sounds interesting (although Istill use @send for @json in my code, bad habit). The only question is whether it is present in a released (npm) version of Express so that we can point the dependecies to it?

@json isn't documented on zappajs.com.

Looking at the releases jsonp is in 3.0.0rc4.

shimaore added a commit that referenced this issue Sep 23, 2012

shimaore added a commit that referenced this issue Sep 23, 2012

Owner

shimaore commented Sep 23, 2012

For the latest docs please use http://zappajs.github.com/zappajs/docs/reference

I'll try to add tests soon =/

How can we test @jsonp?

Pull Request: #86

shimaore added a commit that referenced this issue Aug 18, 2013

This can be closed.

@shimaore shimaore closed this Aug 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment