concept JSON format in category scala

appears as: JSON format, JSON format
Play for Scala: Covers Play 2

This is an excerpt from Manning's book Play for Scala: Covers Play 2.

This example uses the JSON format to nest properties instead of repeating the db.default prefix for each property. Now we can include this configuration in our main application configuration and specify a different database user name and password by adding three lines to application.conf:

In the previous example, we only fetched a list of numbers from the server, in JSON format. This time we’ll need to format instances of our models.Product case class as JSON.

Listing 8.10. Output product details in JSON format—app/controllers/Products.scala

The idea is that this gets an Option[Product] from the model and returns a response with the product in JSON format, or a NotFound error response if there’s no such product.