A
A
Alexander2015-11-12 17:06:24
JSON
Alexander, 2015-11-12 17:06:24

Why does it give json parsing error?

Hello, I ran into an unpleasant situation, the script does not want to parse json, although it does not give any errors through jsonviewer.stack.hu or json.parser.online.fr .
Sasha error from console:

undefined:1
{"success":true,"lowest_price":"34,54 p\u0443\u0431.","volume":"12","median_p
^
SyntaxError: Unexpected token
    at Object.parse (native)

Json itself
{"success":true,"lowest_price":"34,54 p\u0443\u0431.","volume":"12","median_price":"34,54 p\u0443\u0431."}

The error occurs when getting JSON from a link:
http://****************price.php?item=Five-SeveN%20%7C%20Nightshade%20(Factory%20New)

And when receiving from this link, there is no error, although everything is identical at first glance (Not counting the numbers)
http://steamcommunity.com/market/priceoverview/?appid=730&currency=5&market_hash_name=Five-SeveN%20%7C%20Nightshade%20(Factory%20New)

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2015-11-12
@QcfgAlexandr

Null character at the beginning? There has been a problem somewhere...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question