简体   繁体   中英

AddJsonOptions for MvcJsonOptions in Asp.Net Core 2.2

I have read this question and this one about AddJsonOptions in older version (2.0 and 2.1 respectively).

I'm Using Asp.net Core 2.2 but there is not such method of AddJsonOptions under services . I also checked the documentation for asp.net core 2.1 where exist the MvcJsonOptions and AddJsonOptions for Core 2.1 but when changing it to version 2.2 it states there is no such page for that version.

Does anyone know where is gone this Service?

正如这里提到的 MvcJsonOptions正在迁移到 Asp.net core 2.2 中的Microsoft.AspNetCore.Mvc ,正如本文档中所述,并且已经开始迁移到 asp.net core 2.1,并且 Asp.net core 2.2 的文档也不是尚未更新,这就是为什么我们在那里看不到它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM