tarekz
tarekz
I have the same problem when I delete the first element of an array. It creates n differences for an array of n elements. ``` var lhs = ["1", "2",...
Not sure what happened there, but it seems that when i submitted my issue the \ were removed? What you corrected is actually what i have in my script. If...
Still same. But honestly I am not sure if it is a bug on jq side since the same example on https://jqplay.org/s/aAfdPTxJpi works fine. It also works fine if I...
 This is the actual json I am using in testing my script. In any case, I will close the issue while I check your previous answer. Thanks for the...
@nicowilliams actually it seems the issue is due to me testing my script on GIT BASH on WINDOWS platform. I tried my script on a Unix machine and it passed......
``` #!/bin/bash echo "parsing result in variable" result='[{"Status":"A", "JSON":"{\"field1\":\"value1\"}"},{"Status":"B", "JSON":"{\"field1\":\"value2\"}"}]' echo $result > json_in_json.json result=$(echo "$result" | jq '[.[]."Status"]') echo $result echo "parsing result from file" jq '[.[]."Status"]' json_in_json.json ```
Also, i have asked the question on stakcoverflow if you would like to answer it there. https://stackoverflow.com/questions/55029614/jq-unable-to-parse-json-inside-json
@pkoppstein you mentioned the wrong tarek :)
Thank you! @muhmuhten Do you mind answering me on StackOverflow too? https://stackoverflow.com/questions/55029614/jq-unable-to-parse-json-with-embedded-json
Pasting this here if it can help: $ bash --version GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later...