Skip to content

call Find() twice with the same path but got nil for the second time #103

Open
@Boyy-Next-Door

Description

@Boyy-Next-Door
        jq := gojsonq.New().FromString(string(data))
	path1 := fmt.Sprintf("data.dynamicConfig.%s.feConfig.areaLevel", req["corpId"].(string))
	areaLevel := jq.Find(path1)     // got correct value    interface{} | float64 => 3
	areaLevel2 := jq.Find(path1)   // got interface{}  => nil

Is there anything wrong in this use case ? 😭

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions