suppose we have a log file named 'log.json' and record some error level info, we want to split the stack trace from the file with some filter(like time) to formatted json, so we can do this :
cat log.json | jq '. | select(.level=="error") | select(.time | contains("xxxxx"))' | jq '.stacktrace | fromjson'