I'm sending an HTTPWebRequest to a service and they are returning a userid in JSON.
They are returning:
{"id: 123456"}
How do I process this? Should I just do a split on the : and take the second element or is there a proper way of doing this?
you can do that or use a json serializer to deserialize it
if you are using .net 3.5 have a look at system.web.script.serialization.javascriptserializer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With