Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

How to sort this json file with either jq or sed

$
0
0
{"adfdasfdafdfds": {"amount": 43,"mints": ["adfdasffd","dsafdsafdsfds"    ]  },"dfsfsdfdsf": {"amount": 1020,"mints": ["dfsfsads"    ]  },"sdfsdfdfgf": {"amount": 1,"mints": ["fsfdsfdfds"    ]

How to sort this code by amount in either jq or sed/awk ?

The problem is that the first part isn't defined.


Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>