add libjson.cc and undefine JSON_DEPRECATED_FUNCTIONS.