| 343 | advance(',');}} |
| 344 | advance('}');} |
| 345 | function jsonArray(){var t=nexttoken;advance('[');if(nexttoken.id!==']'){for(;;){if(nexttoken.id==='(end)'){error("Missing ']' to match '[' from line {a}.",nexttoken,t.line+1);}else if(nexttoken.id===']'){warning("Unexpected comma.",token);break;}else if(nexttoken.id===','){error("Unexpected comma.",nexttoken);} |
| 346 | jsonValue();if(nexttoken.id!==','){break;} |
| 347 | advance(',');}} |
| 348 | advance(']');} |
| 349 | switch(nexttoken.id){case'{':jsonObject();break;case'[':jsonArray();break;case'true':case'false':case'null':case'(number)':case'(string)':advance();break;case'-':advance('-');if(token.character!==nexttoken.from){warning("Unexpected space after '-'.",token);} |
| 350 | adjacent(token,nexttoken);advance('(number)');break;default:error("Expected a JSON value.",nexttoken);}} |
| 351 | var itself=function(s,o){var a,i;JSLINT.errors=[];predefined=Object.beget(standard);if(o){a=o.predef;if(a instanceof Array){for(i=0;i<a.length;i+=1){predefined[a[i]]=true;}} |