Bash Script Help needed
-
Hi Team,
I am trying to download the assigned tickets in the group through bash script.When i am trying to run the script i am getting this error
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html><html...") at /usr/bin/json_xs line 181, <STDIN> line 1.
I have tried to checked that json_xs file as well.This is found in line 181
JSON::XS->new->decode (decode $enc, $_)
Any one faced this issue before like this ?
-
Can we see the part of the BASH script doing the downloading?
-
@scottalanmiller sorry its internal site.so unable to see.but i can say the download is happening through API of the link
-
Whatever you are downloading is an HTML file. But you are trying to parse it as JSON. That command will only work with a JSON file.