That page isn't a JSON formatted document. Perhaps you were looking for a
HTML parser?

On Sun, Mar 1, 2015 at 4:02 PM paul analyst <[email protected]> wrote:

> For some pages JSON parser is OK, but most pages  no, like below.
> How to html parse ?
>
> julia> get("http://rp.pl";).data
> "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
> 2.0//EN\">\n<html><head>\n<title>302 Found</title>\n</head><bod
> Found</h1>\n<p>The document has moved <a href=\"http://www4.rp.pl/\
> ">here</a>.</p>\n</body></html>\n"
>
> julia> JSON.parse(get("http://rp.pl";).data)
> ERROR: Unknown value
> Line: 0
> Around: ...<!DOCTYPE HTML PUBLIC...
>            ^
>
>  in error at error.jl:19
>
> julia>
>
>
> Paul
>
>

Reply via email to