Added json registration api functionality to project