C#
C#

help

Root Question Message

reeeeeee
reeeeeee1/5/2023
❔ JArray.Parse(json) is adding addition whitespaces

The jsonstring is show on the first pic
reeeeeee
reeeeeee1/5/2023
ANd this is the result after is Parse it to Jarray
reeeeeee
reeeeeee1/5/2023
so what are this whitespaces between properties..
FusedQyou
FusedQyou1/5/2023
Second isn't a string
FusedQyou
FusedQyou1/5/2023
It's an object
FusedQyou
FusedQyou1/5/2023
Either that or it's the string representation of the object, which happends to parse it that way
reeeeeee
reeeeeee1/5/2023
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
FusedQyou1/5/2023
Seems like they add newline characters
FusedQyou
FusedQyou1/5/2023
Can't you just do string.replace?
Angius
Angius1/5/2023
Why not just... parse it to a proper object?
Angius
Angius1/5/2023
Instead of fucking around with JObjects and stuff?
FusedQyou
FusedQyou1/6/2023
Not sure what the problem is in general
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy