a libjson copy with custom configuration