Questions tagged [json]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Json Reference field in Json Variant return Error when the Reference Field Is empty

I am using SXA Json Content to create API. In the JSON Variant, I used Reference Field to display Drop Link Field in the data. But when the DropLink field is empty, the API returns error. So I need to ...
0
votes
0answers
17 views

JSON Layout outputting json content inside a div

Using a Sitecore 9.1.1 site with SXA 1.8.1 - I added a new page and changed the Layout via Presentation Details to use the JSON Layout option. I was then able to open in experience editor and see the ...
0
votes
1answer
47 views

SXA JSON results count is not in the response

I'm using Sitecore 9.1 and SXA 1.8, I created a JSON result and configured it as below: The JSON result response doesn't contain the results count, as in SXA search result component request-response, ...
0
votes
1answer
328 views

Bind JSON data in the rendering variants using custom SXA component

Recently I was building a custom SXA component and I have made that by cloning the Default Event List Component given by SXA . I have to get the data in json format from a controller and bind it with ...
0
votes
0answers
138 views

Error when trying to serialize a Glass Mapper object

I am doing a Sitecore / Glass Mapper upgrade from 7.2 -> 9.1.1. In 7.2 this code worked but now it is throwing an error. We are simply trying to serialize a custom class. The line of code looks ...
4
votes
3answers
243 views

How to convert Facet Data to Json format

I am working on display facet data on the Experience profile tab. I am following the below article for the same. http://zhenyuan.azurewebsites.net/post/displaying-custom-facets-in-contact-profile But ...
2
votes
1answer
302 views

Sitecore GlassMapper and Json.NET

I need to pass parameters in Json format from Sitecore item. I am getting Sitecore item using GlassMapper. public interface ISomeType { //some fields } public interface ISomeFolder { ...