Closed freewind closed 12 years ago
I've changed the toString functionality to use JSON.stringify, and added a unit test, but the code above is slightly wrong.
The name property on the User class is a "real" property, and won't be intercepted by JsonObject's noSuchMethod call, which, which is why it prints null.
Will print
null
.I think it should always use
JSON.stringify
instead of_jsonString
.