JSON encoder that aims to be fully compliant with the ECMA-262 specification