Skip to content

Simple json path parser based on googlecode json-simple

Notifications You must be signed in to change notification settings

alagrede/neojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple json path parser based on googlecode json-simple

Usage

json

{
  books: [
    {title: "book1"}, 
    {title: "book2"}
  ]
}

Path

String val = new NeoJson(json)
    .parse("books.[0].title")

json

[
  {
    employee: {
      name: "tony", 
      firstname: "anthony"
    }
  }, 
  {
    employee: {
      name: "flo"
    }
  }
]

Optional property

val = new NeoJson(json)
    .parse("[0].employee.?firstname")

About

Simple json path parser based on googlecode json-simple

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages