Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for publicationHistory (0.2 sec)

  1. internal/s3select/sql/jsondata/books.json

    {
        "title": "Murder on the Orient Express",
        "authorInfo": {
            "name": "Agatha Christie",
            "yearRange": [1890, 1976],
            "penName": "Mary Westmacott"
        },
        "genre": "Crime novel",
        "publicationHistory": [
            {
                "year": 1934,
                "publisher": "Collins Crime Club (London)",
                "type": "Hardcover",
                "pages": 256
            },
            {
                "year": 1934,
    Json
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/jsonpath_test.go

    		{"s.authorInfo.name", []interface{}{"Agatha Christie", "Isaac Asimov", "P. G. Wodehouse"}},
    		{"s.authorInfo.yearRange[0]", []interface{}{1890.0, 1920.0, 1881.0}},
    		{"s.publicationHistory[0].pages", []interface{}{256.0, 336.0, Missing{}}},
    	}
    	for i, tc := range cases {
    		t.Run(tc.str, func(t *testing.T) {
    			jp := JSONPath{}
    			err := p.ParseString(tc.str, &jp)
    			// fmt.Println(jp)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.8K bytes
    - Viewed (0)
Back to top