Kray-G/kinx

Object is not correctly stringified by `toJsonString()` in some case.

Kray-G opened this issue · 0 comments

Look at this.

class A {
    public toString() { return "A"; }
}

System.println({ a: new A() });  // => {"a":A}

A is invalid as a JSON, and it should be "A".