deleted flex json, added jackson mapper and modify controller to be able to generate json