Skip to content

migralito/json4s-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json4s-path

JsonPath for Json4s

How to use

import JsonPath._

val ast = parse(strJson)

val name = ast s_\ "$.object.array[4].name"      // String value
val age  = ast i_\ "$.object.array[4].age"       // Integer value
val tall = ast b_\ "$.object.array[4].am_i_tall" // Boolean value

val maybeChildren = ast i_\? "$.object.array[4].childrenCount" // Option[Integer] value

About

JsonPath for Json4s

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages