JSON Array to build a complex object isn't letting me create multiple different properties inside it
Hi! I'm having an issue serializing a JSON object to create a Microsoft Band WebTile. Here is my code, and then the issue I'm having
9 Replies
There's my code
And here are the two errors I'm experiencing
This is line 100 (the line with CS0746)
Here is the line 40 with CS0826
Under the "pages" element, each new {} constructs a different type, since they have different members. You'll have to type the array that is assigned to pages as new object [] { ... }
They're already set up like that. All the pages are in array (inside {...})
Actually, multiple pages don't need to be created. This is a VERY specific use case, and honestly, the multiple pages added wouldn't make sense anyway. Thanks for the help though :)