compatibility with old libjson