Chapter 2. Reading and Writing JSON on the Server
In the previous chapter, we looked at JSON handling in some of the most common client-side environments. In this chapter, we will turn our attention to server-side JSON encoding and decoding. We'll look at recipes on how to do this in the following environments:
- Reading and writing JSON in Clojure
- Reading and writing JSON in F#
- Reading and writing JSON in Node.js
- Reading and writing JSON in PHP
- Reading and writing JSON in Ruby
Some languages, such as C++ and Java, are used on both client-side and server-side; for these, refer to Chapter 1, Reading and Writing JSON on the Client (one exception is the discussion of JSON in Node.js because Node.js plays a big role in subsequent chapters of this book).