Or you can have a look at
[Apache-SVN] Contents of /commons/proper/lang/trunk/src/java/org/apache/commons/lang/math/NumberUtils.java
Search for a method called isNumber
For the people out there trying to do things with strings etc, just look into apache commons already, its absolutely brilliant and will cover most of your needs.
// Json