Skip to content

docfx v3 - Newtonsoft.Json #8137

Answered by yufeih
VaclavElias asked this question in Q&A
Aug 18, 2022 · 2 comments · 5 replies

You must be logged in to vote

When we were building the JSON pipeline for v3, System.Text.Json was very immature.

Today the biggest blocker to move to System.Text.Json is the propagation of line info. We rely on this propagation mechanism to report detailed diagnostic locations for YAML files. With Newtonsoft.Json, we can attach custom source info to JToken and deserialize it into Source<T> with a custom JsonConverter. There doesn't seem to be a straightforward way of achieving the same in System.Text.Json.

Replies: 2 comments 5 replies

You must be logged in to vote
4 replies
@KalleOlaviNiemitalo

@paulushub

@KalleOlaviNiemitalo

@VaclavElias

You must be logged in to vote
1 reply
@paulushub

Answer selected by VaclavElias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants