Configuring Controllers for json data

@aelnouby please review and merge