Pattern match in play json generator