added to-json method