split Jansson.jsonError into encodingError and decodingError.
Jansson: fix bug that currentErrorSource calls a wrong function.
add tests for Jansson.loads.
fix bug that Jansson.dumps calls a wrong function
add tests for Jansson.dumps.