illustrate JSON serialization for user endpoint