I'm using Sitecore 10 and SXA. And I'm trying to add template-id to be returned in JSON Result Layout.
I tried creating a new JSON Field under the rendering variant with field name value ('template' or 'templateid' or '_template') but with no luck it returns empty string.
Also, I tried using JSON Template for example adding value '$item.Name' in the template field, but also with no luck it wasn't added to the Json field.
Could anyone help on how to add template id in JSON Result variant?