fixed JSON-compatibility in jXtoJSON