build libjson