can now dump more complex stuff as json.