I have a client which needs me to bring in a global navigation from thier main site. The details for this exist within a json object called with a url.
What would be the best way to parse this into umbraco. Has anyone done this before ?
I would recommend looking at using System.Net.Http.HttpClient which is part of .Net WebApi, although I think that it will require you to have the .NET framework v4.5 (I'm not 100% sure on this though). Additionally worth mentioning that Umbraco v6.1+ ships with WebApi already included.
More information on WebApi and using HttpClient can be found here
bring contents of Json url into xslt or c# razor.
I have a client which needs me to bring in a global navigation from thier main site. The details for this exist within a json object called with a url.
What would be the best way to parse this into umbraco. Has anyone done this before ?
Doogie
Hi Doogie,
I would recommend looking at using System.Net.Http.HttpClient which is part of .Net WebApi, although I think that it will require you to have the .NET framework v4.5 (I'm not 100% sure on this though). Additionally worth mentioning that Umbraco v6.1+ ships with WebApi already included.
More information on WebApi and using HttpClient can be found here
Hope that's helpful,
Jeavon
Could you use querystrings?
is working on a reply...