Issue 8: ToString filter not doing what it should. (javascript)
Status:  Fixed
Owner: ----
Closed:  Apr 2009
Project Member Reported by dlikhten, Apr 6, 2009
The ToString formatter should invoke s.toString() which is either
Object.toString() or whatever is overridden. Since javascript does not do
this automatically like java does whenever converting an object to a string
it would make sense to do this, otherwise ToString is really a noop.
Apr 6, 2009
Project Member #1 gtempacc...@yahoo.com
Yes, good point.  The 'str' formatter is defined as "an implementation-specific
string representation for the JSON node".

I added you as a member to the project.  Can you provide a patch for review?  See here:

https://code.google.com/p/json-template/wiki/DevelopingJsonTemplate

Thanks.  This also points to the need for JavaScript-specific tests... 

Apr 6, 2009
Project Member #2 dlikhten
There are a few other issues I really want to tackle before I just go on to patch up
the little problem in the JS impl (and more might become visible as I really go
through all of it). 

However this is a trivial fix :) Sure why not. 

In javascript the standard is the .toString method, though Java casts all objects
using the .toString method when converting them to a string, javascript does not do
this automatically. But the Object object has it.
Apr 17, 2009
Project Member #3 gtempacc...@yahoo.com
Fixed in r194.

Status: Fixed