A parser converting a key of a Map[String, [Seq[String]]] to a Path instance
foo.bar[0].baz
becomes Path \ "foo" \ "bar" \ 0 \ "baz"
Convert a Path to a String key
Convert a Path to a String key
The path to convert
A String representation of p
Convert a String key to a Path using PathParser
Convert a String key to a Path using PathParser
The String representation of path to convert
a Path
Find a sub-Map of all the elements at a Path starting with path
Find a sub-Map of all the elements at a Path starting with path
The prefix to look for
The map in which you want to lookup
a sub Map. If no key of data
starts with path
, this map will be empty
Apply f
to all the keys of m
Apply f
to all the keys of m
Convert a Map[Path, Seq[String]] to a Map[String, Seq[String]]
Convert a Map[String, Seq[String]] to a Map[Path, Seq[String]]
Play provides you a
Map[String, Seq[String]]
(aliased asUrlFormEncoded
) in request body for urlFormEncoded requests. It's generally a lot more convenient to work onMap[Path, Seq[String]]
to define Rules. This object contains methods used to convertMap[String, Seq[String]]
<->Map[Path, Seq[String]]
We use the alias
UrlFormEncoded
, which is just aMap[String, Seq[String]]