Timeline for Query a JSON using LINQ
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 10, 2020 at 23:23 | vote | accept | Héctor León | ||
| Feb 10, 2020 at 23:20 | vote | accept | Héctor León | ||
| Feb 10, 2020 at 23:23 | |||||
| Feb 10, 2020 at 19:12 | history | edited | Nguyễn Văn Phong | CC BY-SA 4.0 |
added 421 characters in body
|
| Feb 10, 2020 at 19:07 | comment | added | Nguyễn Văn Phong | Does this answer your question? Let me know if you need any help. dotnetfiddle.net/H7PdyG | |
| Feb 10, 2020 at 18:37 | comment | added | Héctor León | Thanks man! Is it possible to have a single LINQ query just to get those 2 values? Stops property I know is an array but it will always only contain just one Stop. | |
| Feb 8, 2020 at 1:51 | comment | added | Nguyễn Văn Phong |
Yes, You can use Linq like var stopIds = deserializedObject.stops.Select(p => p.id); to achieve it. Check my answer above to have a better understanding.
|
|
| Feb 8, 2020 at 1:47 | history | edited | Nguyễn Văn Phong | CC BY-SA 4.0 |
added 619 characters in body
|
| Feb 8, 2020 at 1:47 | comment | added | Héctor León | Thanks man! but I would like to know if it's possible using LINQ. | |
| Feb 8, 2020 at 1:41 | history | answered | Nguyễn Văn Phong | CC BY-SA 4.0 |