added JsonParserAgent::isNull() that checks if  the element is null.