add convenience methods for accessing the various types of elements in a JSON object
make JsonPath a case class that is easy for matching eg. in a pathMap operation