Using JSON data

后端 未结 2 1203
春和景丽
春和景丽 2021-01-18 23:28

I am trying to make a simple twitter client in C. I\'m new at this and not sure how to go about segregating meaningful stuff from the JSON string that I get from the API.

2条回答
  •  自闭症患者
    2021-01-19 00:09

    Why not just use one of the existing libraries for working w/ Twitter?

    http://apiwiki.twitter.com/Libraries

    As a more direct response to your question, I'd recommend not trying to do text parsing on your own, but instead have classes that mean something to your domain that you can then use the JSON serialization/deserialization logic that comes w/ the framework, e.g.

    http://msdn.microsoft.com/en-us/library/bb412179.aspx

    Hope that helps, Paul

提交回复
热议问题