Detect libjansson
Be more conformant to JSON spec