↧
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 ArticleHow 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