File: doc.go

package info (click to toggle)
golang-github-thedevsaddam-gojsonq 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 476 kB
  • sloc: makefile: 36
file content (19 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Package gojsonq provides a simple, elegant and fast ODM like API to access/query JSON document.
//
// JSON document can be read from file, string or io.Reader.
// Accessing the value of json property or querying document is simple as the example below:
//
//  package main
//
//  import "github.com/thedevsaddam/gojsonq"
//
//  const json = `{"name":{"first":"Tom","last":"Hanks"},"age":61}`
//
//  func main() {
// 	 name := gojsonq.New().FromString(json).Find("name.first")
// 	 println(name.(string)) // Tom
//  }
//
// For more details, see the documentation and examples.
//
package gojsonq