Fix a few issues

First of all, we don't need to write in the json the null values.
Secondly, the PRIMITIVES array can be replaced by the method isPrimitive.
Finally, we don't want to parse the objects in the java and javax packages.