Should call 'toJSON' if it is defined on the object being stringified.
reindent
0.1.2
guard the reference