Get json for totocontroller