October 2015
Intermediate to advanced
288 pages
7h 35m
English
The default data protocol of front-end JavaScript websites is JSON. When you’re writing a back-end service, handling JSON is becoming essential. This chapter will build a JSON server in ClojureScript.
In this recipe you use Clojure to create a simple JSON server. We create a new Clojure project, create an HTML page with JavaScript to post the JSON, and create a Clojure server in Compojure to receive the request and return a response. Then we’ll process and display that response in the HTML page’s JavaScript.
In this chapter we assume the following:
You know enough JavaScript to recognize a JSON post and receive ...
Read now
Unlock full access