hyperboria / peers

A geographically sorted list of public peering credentials for joining Hyperboria

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create json linter

ansuz opened this issue · comments

commented

jsonlint.com isn't quite what we need, since credentials would all need to be wrapped in curly braces to be considered valid.

Putting this on a github.io page with a textarea field and some buttons would be sufficient.

try{
    JSON.parse("{"+theirJSON+"}");
}catch(err){
    /* you messed up */
}

I'm doing the same here. I'm then iterating over all keys in that dict.