0

I have an output from a process that looks like this:

{ "v1": "x0482030ssj09645j34" } 

I need to parse this output in order to extract x0482030ssj09645j34.

Any help is appreciated. Thanks!

1 Answer 1

1

is a handy JSON parser. In this case, you can do

your_process | jq -r '.v1' 

to output just that value

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! But this will not work for me, as I cannot assume that I have jq installed...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.