Converted Controller to use JsonObjects