working on jsoncontroller