json serialization, removed clunky string export