jsonparser按索引访问字段

i have problem to access fields by index. this library https://github.com/buger/jsonparser

example from https://github.com/buger/jsonparser:

// Or use can access fields by index!
jsonparser.GetInt("person", "avatars", "[0]", "url")

My code:

    package main

    import (
      "github.com/buger/jsonparser"
      "fmt"
    )
    func main () {
      data := []byte(`{
        "person": {
          "name": {
            "first": "Leonid",
            "last": "Bugaev",
            "fullName": "Leonid Bugaev"
          },
          "github": {
            "handle": "buger",
            "followers": 109
          },
          "avatars": [
            {
              "url": "https://avatars1.githubusercontent.com/u/14009?v=3&s=460",
              "type": "thumbnail"
            }
          ]
        },
        "company": {
          "name": "Acme"
        }
      }`)

      fmt.Println(jsonparser.GetInt(data, "person", "[2]", "[0]", "url"))
    }

result in terminal: 0 Key path not found

Person is not an array so you can not access it by index.