parseValue method

VlJson parseValue()

Implementation

VlJson parseValue() {
  this.skipWs();
  if ( i >= n ) {
    this.fail("unexpected end of input");
    return VlJson.nullValue();
  }
  int c = s.codeUnitAt(i);
  if ( c == 123 ) {
    return this.parseObject();
  }
  if ( c == 91 ) {
    return this.parseArray();
  }
  if ( c == 34 ) {
    return this.parseString();
  }
  if ( c == 116 ) {
    return this.parseKeyword("true", 1, true);
  }
  if ( c == 102 ) {
    return this.parseKeyword("false", 1, false);
  }
  if ( c == 110 ) {
    return this.parseKeyword("null", 0, false);
  }
  return this.parseNumber();
}