Escape double quotes in ADOS?

damir · 575

damir

  • Newbie
  • *
    • Posts: 33
    • Karma: +10/-3
    • ioox.studio
on: September 25, 2022, 06:22:09 AM
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, 06:29:20 AM by damir »



o1i

  • Newbie
  • *
    • Posts: 41
    • Karma: +6/-0
Reply #1 on: September 25, 2022, 08:58:02 AM
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, 09:41:38 AM
Thanks!