We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b747cb6 commit 6911372Copy full SHA for 6911372
jsonq.go
@@ -479,9 +479,7 @@ func (j *JSONQ) sortBy(property string, asc bool) *JSONQ {
479
// only return selected properties in result
480
func (j *JSONQ) only(properties ...string) interface{} {
481
result := []interface{}{}
482
- if j.distinctProperty != "" {
483
- j.distinct()
484
- }
+
485
if aa, ok := j.jsonContent.([]interface{}); ok {
486
for _, am := range aa {
487
tmap := map[string]interface{}{}
0 commit comments