Quantcast
Channel: How to form correct JQ Expression to get exact output data from JSON file? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Inian for How to form correct JQ Expression to get exact output...

With a slight bit of reform, it could be written as below. The key is to reuse the variable $k once for forming the key name and then later to exclude it from the members..body.primarykey[] as $k | {...

View Article



How to form correct JQ Expression to get exact output data from JSON file?

I am using JQ Play.Here is my JSON Data -{"body": {"name": "DATATYPES","primarykey": ["db_number" ],"members": [ {"name": "db_number","type": "NUMBER" }, {"name": "db_date","type": "DATE" }, {"name":...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images