added json serializer and user class, works end to end