add parse_digit()

can verify a normal JSON string which number is integer or decimals but
can not recognize exponent like "12.3E2"