Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71523

Response of FileTransfer Upload cannot be parsed into JSON

$
0
0

@Skee wrote:

Hello,
I have a strange problem:
I upload a file to my server with FileTransfer and i want to process the response of the server on the client.
The response is this string: "{"error":false,"new_name":"596108fe2b63d7.14487709.jpg"}"
But when i run JSON.parse on this string i get an "SyntaxError: Unexpected token  in JSON at position 0".

If i run an external validation on this string, it is valid to be used as JSON

Anyone has an idea, whats the problem here?

Thanks
Skee

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>