https://github.com/gwtproject/gwt-jsonp
GWT JSON-P
https://github.com/gwtproject/gwt-jsonp
gwt gwt3 j2cl jsonp
Last synced: 6 months ago
JSON representation
GWT JSON-P
- Host: GitHub
- URL: https://github.com/gwtproject/gwt-jsonp
- Owner: gwtproject
- License: apache-2.0
- Created: 2018-04-16T19:06:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T20:29:19.000Z (about 5 years ago)
- Last Synced: 2025-10-13T12:23:52.641Z (9 months ago)
- Topics: gwt, gwt3, j2cl, jsonp
- Language: Java
- Homepage:
- Size: 111 KB
- Stars: 1
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GWT JSONP
**Needs to be rewritten**
 [](http://www.apache.org/licenses/LICENSE-2.0.html) [](https://gitter.im/gwtproject/gwt-modules) 
A future-proof port of the `com.google.gwt.jsonp.JsonP` GWT module, with no dependency on `gwt-user` (besides the Java Runtime Emulation), to prepare for GWT 3 / J2Cl.
## Migrating from `com.google.gwt.jsonp.JsonP`
1. Add the dependency to your build.
For Maven:
```xml
org.gwtproject.jsonp
gwt-jsonp
HEAD-SNAPSHOT
```
For Gradle:
```gradle
implementation("org.gwtproject.jsonp:gwt-jsonp:HEAD-SNAPSHOT")
```
2. Update your GWT module to use
```xml
```
3. Change the `import`s in your Java source files:
```java
import org.gwtproject.jsonp.client.JsonpGlobal;
```
## Instructions
To build gwt-jsonp:
* run `mvn clean verify`
on the parent directory. This will build the artifact and run tests against the JVM, J2CL, and GWT2.
## System Requirements
**GWT JSONP requires GWT 2.9.0 or newer!**
## Dependencies
GWT JSONP depends on gwt-callbackm gwt-safehtml and gwt-timer.