set json context for all api urls and error + api controller