You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to retrieve the value inside MAIN.sess_conn, I've tried all this and it prints empty string:
fmt.Println(gjson.Get(json, gjson.Escape("MAIN.sess_conn"))) // prints blank line
fmt.Println(gjson.Get(json, `MAIN\.sess_conn.flag`)) // prints blank line
fmt.Println(gjson.Get(json, `MAIN\.sess_conn.value`).String()) // prints blank line
Even the Exists method returns false
fmt.Println(gjson.Get(json, `MAIN\.sess_conn.value`).Exists()) // prints false
fmt.Println(gjson.Get(json, `MAIN\.sess_conn`).Exists()) // prints false
The text was updated successfully, but these errors were encountered:
go1.18.1 linux/amd64
gjson version 1.17.1
sample json:
I want to retrieve the value inside MAIN.sess_conn, I've tried all this and it prints empty string:
Even the Exists method returns false
The text was updated successfully, but these errors were encountered: