JSonPath

zoey·2022년 11월 29일
0
  • Dot 표현법
    - $.store.book[0].title
  • Bracket 표현법
    - $.['store']['book'][0]['title']
{
	"store": {
    	"book": [
        	{
            	"category":"reference",
                "author":"Nigel Rees",
                "title":"Sayings of the century",
                "price":8.95
            },
            {
            	"category":"fiction",
                "author":"Evenlyn Waugh",
                "title":"Sword of Honour",
                "price":12.00
            }
        ],
        "bicycle": {
        	"color":"red",
            "price": 19.95
        }
}

store 속 book 리스트 중 author 리스트 추출
$.store.book[*].author

0개의 댓글