https://github.com/mostlygeek/play2-json-controller
Play Framework 2.0 JSON Only Controller Example
https://github.com/mostlygeek/play2-json-controller
Last synced: 3 months ago
JSON representation
Play Framework 2.0 JSON Only Controller Example
- Host: GitHub
- URL: https://github.com/mostlygeek/play2-json-controller
- Owner: mostlygeek
- Created: 2012-08-14T00:32:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-14T18:02:17.000Z (almost 13 years ago)
- Last Synced: 2025-02-12T16:51:50.538Z (4 months ago)
- Language: Scala
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Play 2.0 Demo JSON Only Controller
The Play framework has facilities for making it easy to work with JSON and
creating custom controllers.This mini-project demonstrates
* creating of a controller that accepts ajax requests with a JSON payload
* working with the json body as the default JsValue
* working with the json body, by converting the JsValue to a Case class## Try it out
* [DEMO](http://play2-json-controller.herokuapp.com/)
## References
* [Working with JSON in Play](http://www.playframework.org/documentation/2.0.2/ScalaJson/)