var formatter = new JsonOutputFormatter(formatterSettings, ArrayPool<Char>.Shared);
A source
In comments:
JsonOutputFormatter now needs ArrayPool when creating it, you can pass in ArrayPool.Shared.
I also noticed that .Create () method exists on ArrayPool.
var formatter = new JsonOutputFormatter(formatterSettings, ArrayPool<Char>.Create());
Nick acosta
source share