minio / simdjson-go

Golang port of simdjson: parsing gigabytes of JSON per second
Apache License 2.0
1.8k stars 85 forks source link

Add Object Path selector #48

Closed klauspost closed 2 years ago

klauspost commented 2 years ago

Search by path

It is possible to search by path to find elements by traversing objects.

For example:

    // Find element in path.
    elem, err := i.FindElement("Image/URL", nil)

Will locate the field inside a json object with the following structure:

{
    "Image": {
        "URL": "value"
    }
}