json-parse string expected
Posted: Sun May 06, 2018 9:49 am
Hi,
(json-parse (exec "curl https://www.asdf.com/asdf.json"))
I am getting the message that a string is expected.
The result of the exec has [text]......[/text] at the beginning and end of what is returned.
Is this why json-parse thinks it is not a string?
I tried (json-parse (string (exec "curl....))) too. Still says a string is expected.
How do I remove the [text] ... [/text] so that the result can be interpreted by (json-parse)?
Thanks!
(json-parse (exec "curl https://www.asdf.com/asdf.json"))
I am getting the message that a string is expected.
The result of the exec has [text]......[/text] at the beginning and end of what is returned.
Is this why json-parse thinks it is not a string?
I tried (json-parse (string (exec "curl....))) too. Still says a string is expected.
How do I remove the [text] ... [/text] so that the result can be interpreted by (json-parse)?
Thanks!