Skip to content

Releases: thedevsaddam/gojsonq

Fix error reset on calling Reset method. Issue #80

27 Mar 15:38
Compare
Choose a tag to compare

While using reset() method, the error was not resetting. See issue #80

Fix go mod issue

11 Mar 10:03
7ac0aaa
Compare
Choose a tag to compare

Fix go mod issue #78

Add FromInterface Method and Fix Result As method

13 Jan 17:00
Compare
Choose a tag to compare

Add FromInterface method that solves issue #67
Fix Result As method that solves issue #72

Thanks, @Dragomir-Ivanov and @cifren !

Update As method

20 Nov 07:31
Compare
Choose a tag to compare

Result.As() supports all the available method in Result type except for the methods with an argument like Time

result, _ := gojsonq.New().FromString(jsonStr).From("prices").GetR() // handle error
var prices []float32
result.As(&prices) // handle error
fmt.Printf("%#v\n", prices)

Add support for Result instance

23 Sep 19:26
ab3beb6
Compare
Choose a tag to compare

The Result instance will return different methods to get static type.

const json = `{"name":{"first":"Tom","last":"Hanks"},"age":61}`
result, err := gojsonq.New().JSONString(json).FindR("name.first")
if err != nil {
	log.Fatal(err)
}
name, _ := result.String()
fmt.Println(name)

Fix duplicate distinct method call from only method

27 May 16:28
Compare
Choose a tag to compare
v2.2.2

Fix duplicate distinct method call from only method

Fix select attributes for First,Last & Nth methods

07 May 04:41
cccb371
Compare
Choose a tag to compare

Fix select attributes for First,Last & Nth methods

res := gojsonq.New().File("./data.json").From("items").Select("name", "price").First()
fmt.Printf("%#v\n", res)

Output

map[string]interface {}{"name":"MacBook Pro 13 inch retina", "price":1350}

Add Offset, Writer and FromString method

05 Apr 17:01
Compare
Choose a tag to compare

Offset

gojsonq.New().File("./data.json").From("items").Offset(10).Limit(10).Get()

Writer

gojsonq.New().File("./data.json").From("items").SortBy("price").Writer(os.Stdout)

FromString

gojsonq.New().FromString(jsonStr).From("items").Get()

Fix separator issue for deep sort and alias

20 Feb 14:57
5ac255c
Compare
Choose a tag to compare

Fix separator issue for deep sort and alias see pr #40

Stable API; Add More method

20 Feb 14:58
Compare
Choose a tag to compare

Stable API; Add More method