C
C#2y ago
reeeeeee

❔ JArray.Parse(json) is adding addition whitespaces

The jsonstring is show on the first pic
8 Replies
reeeeeee
reeeeeee2y ago
ANd this is the result after is Parse it to Jarray
reeeeeee
reeeeeee2y ago
so what are this whitespaces between properties..
FusedQyou
FusedQyou2y ago
Second isn't a string It's an object Either that or it's the string representation of the object, which happends to parse it that way
reeeeeee
reeeeeee2y ago
Yeah its a string representation of the object.. but if parse it back to string, the \n\r appeares.. so JsonString -> Jobject -> different JsonString
FusedQyou
FusedQyou2y ago
Seems like they add newline characters Can't you just do string.replace?
Angius
Angius2y ago
Why not just... parse it to a proper object? Instead of fucking around with JObjects and stuff?
FusedQyou
FusedQyou2y ago
Not sure what the problem is in general
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server