Copied to clipboard

Flag this post as spam?

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


  • Gonçalo Chaves 14 posts 125 karma points
    Apr 17, 2018 @ 17:33
    Gonçalo Chaves
    0

    IPublishedContent into json without mapping

    Hi all,

    Is there a friendly way to serialize an IPublishedContent node to a Json format, without having to map into a model object?

    I believe that exists a circular reference issue like is described at https://gist.github.com/EdCharbeneau/702a4c2d702d30f371bd

    At this time, shouldn't be a very and direct way to have the CMS content exposed as a json format?

    Thanks

  • Gonçalo Chaves 14 posts 125 karma points
    Apr 18, 2018 @ 10:43
    Gonçalo Chaves
    0

    So I founded a package called tapas from Joeriks at https://github.com/joeriks/Tapas , and it can help you out. Besides doing the right json serialization on the content tree nodes, you can pass the url as a parameter.

    ex: [GET] /umbraco/tapas/content/getdescendantsorself/?url=/

    This could a feature that should be on the CMS core product.

    Although I found this solution, I'm open to discussing on this thread.

    thank you all

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies