I'm working with django + piston and so far created a few urls that are returning my django models in JSON quite well. I didn't even have to specify an emitter, the JSON serialization is done automagically.
Now I need to return a JSON serialized object that does not extend Django Model class. If I return its value, piston returns the __ str __ value, even if I add the JSON emitter nothing happens. I don't want to add the JSON serialization in the __ str __ method since it wouldn't be correct. What's the correct approach for this?