added Libjson optional support