parses a json digit such as:
1, 1.0, -1, -1.0, -1.0E-1, etc..
rejects digits such as:
1., 1.E, 1E, 1.0-E1, etc..