Idea for Graphic toJson() method

Discussion created by btfou on Aug 27, 2013
When creating json of a graphic it would be nice to optionally specify whether or not to include symbol, attributes and infoTemplate in the result.

Like this for example:
var json = graphic.toJson(
    infoTemplate: false

Just a thought. Keep up the good work jsapi team!