Closed thedevsaddam closed 5 years ago
Result will return static type instead of interface.
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)
Result may contains method like: String/Int/Int32/Int64/Uint/Uint32/Uint64/Float32/Float64/[]String/[]Int/[]Uint/[]Float32 etc method
String/Int/Int32/Int64/Uint/Uint32/Uint64/Float32/Float64/[]String/[]Int/[]Uint/[]Float32
Result method name may FindR/GetR etc
FindR/GetR etc
Result will return static type instead of interface.
Result may contains method like:
String/Int/Int32/Int64/Uint/Uint32/Uint64/Float32/Float64/[]String/[]Int/[]Uint/[]Float32
etc methodResult method name may
FindR/GetR etc