✅ Why can't I deserialize list of tuples?
I Got
List<bool, string>
inside my code. This is how I wrote it down in Json.
But bool is always false and string is always equal to null. Is it wrong format or something?13 Replies
ero
REPL Result: Success
Result: List<ValueTuple<bool, string>>
Compile: 564.776ms | Execution: 45.109ms | React with ❌ to remove this embed.
same problem with me
fun
wait. I think it should be
item1
instead of Item1
nope. still same issue
valuetuples just don't work with serialization i guess
ero
REPL Result: Success
Result: string
Compile: 537.975ms | Execution: 51.936ms | React with ❌ to remove this embed.
i better create a small class with just
bool
and string
no other option here
are there some built in things like tuples?record R(bool B, string S);
ero
REPL Result: Success
Result: string
Compile: 599.487ms | Execution: 60.277ms | React with ❌ to remove this embed.
Angius
REPL Result: Success
Result: List<Thing>
Compile: 680.984ms | Execution: 86.612ms | React with ❌ to remove this embed.
:/
Item1 and Item2 are fields
thanks
i would have thought to do that