Added detection for the version of libjson used in the system
Also, fixed printing of entire json objects