Sample Header Ad - 728x90

Convert json data to comma separated string

0 votes
3 answers
323 views
I have a json object that has an unknown number of variables, like this:
{ 
  "var1": 123, 
  "var2": 456, 
  "var3": 789 
}
How can I automatically convert it to form the following string?
'var1=123,var2=456,var3=789'
Note, I am looking for a solution that doesn't require installing jq.
Asked by teeeeee (305 rep)
Oct 12, 2024, 08:11 PM
Last activity: Oct 13, 2024, 07:21 AM