-
Hi I like to connect to openremote and they support jsonp instead of json.
references:
http://en.wikipedia.org/wiki/JSONP
http://www.openremote.org/display/docs/Controller+2.0+HTTP-REST-JSONP
do you …
-
这是我在13年初写的文章,当时懵懵懂懂写下了自己对`JSONP`的理解。
---
提到JSONP,我当时在网上找了无数帖子也没有看懂它。那些文章大同小异,都是讲到JSONP原理以后就戛然而止,把我们这些初学者搞得云里雾里。所以,写下这篇文章,希望对大家有帮助!
## 为什么要有JSONP
回答这个问题之前,大家先想想什么是AJAX,JSONP就是一种能够解决AJAX办不到的事情…
-
ghost updated
10 years ago
-
Awesome extension! But I encountered a problem about JSONP;
Data structure like this:
![2fb6357a-98fd-4eb6-a350-2b2cecc12de2](https://cloud.githubusercontent.com/assets/4194287/22182169/5f452b4c-e0d…
-
```
E.g.
expect().body("root.child", equalTo("x")).when("/jsonp?callback=y");
But perhaps it's better/easier to do something like:
expect().jsonp("callback", "y").body("root.child",
equalTo("x"))…
-
_From [johan.ha...@gmail.com](https://code.google.com/u/105676376875942041029/) on March 10, 2011 15:00:54_
E.g.
expect().body("root.child", equalTo("x")).when("/jsonp?callback=y");
But perhaps it…
-
```
E.g.
expect().body("root.child", equalTo("x")).when("/jsonp?callback=y");
But perhaps it's better/easier to do something like:
expect().jsonp("callback", "y").body("root.child",
equalTo("x"))…
-
```
E.g.
expect().body("root.child", equalTo("x")).when("/jsonp?callback=y");
But perhaps it's better/easier to do something like:
expect().jsonp("callback", "y").body("root.child",
equalTo("x"))…
-
```
E.g.
expect().body("root.child", equalTo("x")).when("/jsonp?callback=y");
But perhaps it's better/easier to do something like:
expect().jsonp("callback", "y").body("root.child",
equalTo("x"))…
-
Would you add wrapping JSON response in JSONP callback ability?