Penthus
Penthus
CC#
Created by Penthus on 7/11/2024 in #help
✅ Splitting string into chunks with delimiter
Worked perfectly, thank you very much 🙂
10 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
All working now, thank you for your help 👍
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
Sorry that was serialised but I accidentally still had it as a multidimential array which is why it had the extra layer.
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
[
{
"id": 1,
"posts": 10,
"name": "Bob"
}
],
[
{
"id": 2,
"posts": 50,
"name": "Ted"
}
],
[
{
"id": 3,
"posts": 0,
"name": "Karl"
}
],
[
{
"id": 4,
"posts": 60,
"name": "Mark"
}
],
[
{
"id": 5,
"posts": 1,
"name": "Barry"
}
]
]
[
{
"id": 1,
"posts": 10,
"name": "Bob"
}
],
[
{
"id": 2,
"posts": 50,
"name": "Ted"
}
],
[
{
"id": 3,
"posts": 0,
"name": "Karl"
}
],
[
{
"id": 4,
"posts": 60,
"name": "Mark"
}
],
[
{
"id": 5,
"posts": 1,
"name": "Barry"
}
]
]
I have changed it over from string[,] to a list of Leaderboard objects. Does this look like valid JSON?
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
This is all test data as the main goal is to be getting this data through a discord bot and then converting it.
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
Yeah, how would you go about coverting a string array into my object to then serialise for JSON?
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
I was trying to convert that into something I could serialise.
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
string[,] leaderboardLongArray = new string[,]
{
{"1", "10", "Bob"},
{"2", "50", "Ted"},
{"3", "0", "Karl"},
{"4", "60", "Mark"},
{"5", "1", "Barry"}
};
string[,] leaderboardLongArray = new string[,]
{
{"1", "10", "Bob"},
{"2", "50", "Ted"},
{"3", "0", "Karl"},
{"4", "60", "Mark"},
{"5", "1", "Barry"}
};
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
The JSON was a mix of a serialised string array and some manual tweaking of the text to try and get it to work.
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
Alright thanks I will test it out now.
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
[
"1",
"10",
"Bob"
],
[
"2",
"50",
"Ted"
],
[
"3",
"0",
"Karl"
],
[
"4",
"60",
"Mark"
],
[
"5",
"1",
"Barry"
]
]
[
"1",
"10",
"Bob"
],
[
"2",
"50",
"Ted"
],
[
"3",
"0",
"Karl"
],
[
"4",
"60",
"Mark"
],
[
"5",
"1",
"Barry"
]
]
33 replies
CC#
Created by Penthus on 5/10/2024 in #help
JSON Deserialize
I have been messing around with the JSON file as originally I had it like this, but changed it due to discovering I can't have everything on the same layer and added the User layer.
33 replies
CC#
Created by Penthus on 9/10/2023 in #help
❔ Visual Studio XML Comment Formatting
Not solved.
8 replies
CC#
Created by Penthus on 9/10/2023 in #help
❔ Visual Studio XML Comment Formatting
It's a rather time consuming issue having to go through and manually change all the comments back to be online. Is there some way to do it through some form of automation after the formatting is done?
8 replies
CC#
Created by Penthus on 9/10/2023 in #help
❔ Visual Studio XML Comment Formatting
Unfortunately the structure of the XML files I am working on has them Inline and does not wish to change that formatting rule.
8 replies
CC#
Created by Penthus on 9/10/2023 in #help
❔ Visual Studio XML Comment Formatting
8 replies