Cvfe Cvt ᵖᵘʳʳ
Cvfe Cvt ᵖᵘʳʳ
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 3/26/2023 in #help
Error with creating JSON object.
That was it. The error was because I was reading the string name of the filepath. That explains the "/" error. After removing the Moves : and an extra set of brackets, it parsed. Thank you.
6 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 3/26/2023 in #help
Error with creating JSON object.
The moves word only occurs at the very beginning. I thought that was needed, but I guess the class itself or moreso the deserializer decides the type.
6 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 3/26/2023 in #help
Error with creating JSON object.
Oh, I think I understand. So I would need to remove the moves: statement at the beginning to make it into a List?
6 replies
CC#
Created by minty on 3/23/2023 in #help
✅ Colorful.Console help
I'm not sure if there is a Colorful.Console specific way, but you can do Console.ForegroundColor = System.Drawing.Color.Red; and use any color instead of red. The issue is that you'll have to reset your color back afterwards. So, you could create a method that accepts and input. Then reset the color. Just call that method anytime you need input.
5 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
The entire code is at the top. I'll try System.Text.Json.JsonSerializer.Deserialize<Pokemon>(json); Newton was what I found online. How did you color your blocks?
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
It still doesn't run though lol.
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
Oh! I didn't realize that was still set to int. I had changed everything to string earlier to test.
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
A string as well.
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
Oh, I suppose a string.
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
I am unsure of what you mean. I'm not familiar with C# dictionaries, only python. It is my understanding that the language is the key and the pokemon in the value in the name element.
27 replies
CC#
Created by Cvfe Cvt ᵖᵘʳʳ on 10/7/2022 in #help
How to deserialize dictionary using Newtonsoft [Answered]
Thank you, what data structure is it?
27 replies