Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Doogie Talons 183 posts 318 karma points
    Jul 31, 2013 @ 13:04
    Doogie Talons
    0

    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

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Aug 01, 2013 @ 18:56
    Jeavon Leopold
    0

    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

  • Amir Khan 1287 posts 2744 karma points
    Aug 01, 2013 @ 22:58
    Amir Khan
    0

    Could you use querystrings?

Please Sign in or register to post replies

Write your reply to:

Draft