fixed libjson bugs