Escape double quotes in ADOS?

damir · 196

damir

  • Newbie
  • *
    • Posts: 33
    • Karma: +10/-3
    • ioox.studio
on: September 25, 2022, 01:22:09 PM
In AmigaDOS, how do I escape double quotes?

For example if I want to write JSON:
Code: [Select]
echo "{"hello":"world"}"
I get:
Code: [Select]
{ hello":"world"}"
Or more specific I need to send something like this in curl:

Code: [Select]
curl -d '{"email":"yyy@yyy.com","password":"44444444"}' -H 'Content-Type: application/json' https://target/login
« Last Edit: September 25, 2022, 01:29:20 PM by damir »



o1i

  • Newbie
  • *
    • Posts: 31
    • Karma: +5/-0
Reply #1 on: September 25, 2022, 03:58:02 PM
In AmigaDOS, how do I escape double quotes?

For example if I want to write JSON:
Code: [Select]
echo "{"hello":"world"}"
I get:
Code: [Select]
{ hello":"world"}"
Or more specific I need to send something like this in curl:

Code: [Select]
curl -d '{"email":"yyy@yyy.com","password":"44444444"}' -H 'Content-Type: application/json' https://target/login

Try *" to escape "

Looks strange, but afair it was sth like that.



damir

  • Newbie
  • *
    • Posts: 33
    • Karma: +10/-3
    • ioox.studio
Reply #2 on: September 25, 2022, 04:41:38 PM
Thanks!