July 30, 2012 15:24
tariq (edit) Topic created 8 months ago Edit Topic
I am trying to learn and use the SierraTradingPost API. I am not a developer… I have a question on the values that are returned by http://api.sierratradingpost.com/api/1.0/brands/?api_key=some_key
How do i embed this in an html page ?
Message edited by tariq (edit) 8 months ago
html page, embed
stpapidemo (edit) – 8 months ago Edit Post
How you handle such data will be completely dependent on the system you are using to serve up the web pages in which you want to embed the data. Most programming languages have a methods for parsing (also called deserializing) JSON data into objects.
Since I spend most of my time in .NET, here are some options for it that I have at least spent a few seconds with:
ServiceStack.Text has DeserializeFromString(string json) method and the FromJson(this string) extension method
Newtonsoft’s Json.NET has the JsonConvert.DeserializeObject method