Are there any benefits in using non-async actions in Play Framework 2.2?

Just because you might use Action.async, doesn’t automatically mean you’re not blocking. It all depends on whether you’re using blocking API or not. Play 2.2 seems to work the same way as Play 2.3 in this manner. There isn’t really a difference between Action.apply and Action.async, other than their signatures. Action.async expects some block of … Read more

Defaults for missing properties in play 2 JSON formats

Play 2.6+ As per @CanardMoussant’s answer, starting with Play 2.6 the play-json macro has been improved and proposes multiple new features including using the default values as placeholders when deserializing : implicit def jsonFormat = Json.using[Json.WithDefaultValues].format[Foo] For play below 2.6 the best option remains using one of the options below : play-json-extra I found out … Read more