add libjson code