Answer
Ove
rf
low
Sign In With Discord
C#
help
Join
Root Question Message
reeeeeee
1/5/2023
❔ JArray.Parse(json) is adding addition whitespaces
The jsonstring is show on the first pic
reeeeeee
1/5/2023
ANd this is the result after is Parse it to Jarray
reeeeeee
1/5/2023
so what are this whitespaces between properties..
FusedQyou
1/5/2023
Second isn't a string
FusedQyou
1/5/2023
It's an object
FusedQyou
1/5/2023
Either that or it's the string representation of the object, which happends to parse it that way
reeeeeee
1/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
1/5/2023
Seems like they add newline characters
FusedQyou
1/5/2023
Can't you just do
string.replace
?
Angius
1/5/2023
Why not just... parse it to a proper object?
Angius
1/5/2023
Instead of fucking around with
JObjects
and stuff?
FusedQyou
1/6/2023
Not sure what the problem is in general
Contact
Frequently Asked Questions
Join The Discord
Bugs & Feature Requests
Terms & Privacy