Added config to make api return json