Add JSON serializer for User.