JsonContent was not flushing writer