The use of 'nullptr' here didn't result in a null JSON value, but in a nullptr being cast to a string, which aborts.