add json.dumps and json.loads hook

Add properties for json.dumps and json.loads functions in JSONParser
and JSONRenderer class respectively. The classes can be easily extended
by providing custom dumps and/or loads functions.