Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
is working on a reply...
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.
Continue discussion
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
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
is working on a reply...
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.