Skip to content

JSON Manipulation

3rd Party Libraries


GJSON provides a fast and simple way to get values from a json document. It has features such as one line retrieval, dot notation paths, iteration, and parsing json lines.

A basic example from the GJSON README:

package main

import ""

const json = `{"name":{"first":"Janet","last":"Prichard"},"age":47}`

func main() {
    value := gjson.Get(json, "name.last")