Open untoreh opened 3 years ago
As somewhat of an interesting historical relic, HTTP.jl has a isjson
function; it could perhaps be repurposed and included in the package here: https://github.com/JuliaWeb/HTTP.jl/blob/209f10eaa0d51372e0ed7f6127bff7a37047349d/src/sniff.jl#L287
I was looking for an
isjson(::String)
function that checks for valid json, such that I can walk over an HTML tree to check nodes for json scripts without exception handling