Added a to_json method creating json with specifying a encoder class.
And now, __str__ method uses this method without specifying any encoder class.