Search Results

Search: Posts Made By: apmcd47
12,126
Posted By apmcd47
What happens if you don't put in all the white...
What happens if you don't put in all the white space?

--data $(printf '{"mName":"%s","oName":"%s"}' "$mname" "$oname")
Or use an intermediate variable:
json_data=$(printf...
12,126
Posted By apmcd47
--data $(printf '{"mName":"%s","oName":"%s"}'...
--data $(printf '{"mName":"%s","oName":"%s"}' "$mname" "$oname")may work too. Notice how I've used single quotes for the format string to preserve the double quotes without escaping them.

If that...
12,126
Posted By apmcd47
I've discovered a handy little tool called jq...
I've discovered a handy little tool called jq which can be used to build, display and manipulate JSON. If you are on Linux you can probably install it from the repository. Then you could change your...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy