Export to JSON using #dump, not #to_s