@turbo-ele can we do this easier? perhaps with:
* toArray function in class
* json_encode($userData->toArray()) here in controller?