Try our conversational search powered by Generative AI!

Episerver Content Delivery Api - [JsonIgnore]

Found in

EPiServer.ContentDeliveryApi 1.0.0

Fixed in

EPiServer.ContentDeliveryApi 1.0.1

(Or a related package)

Created

Apr 26, 2018

Updated

May 28, 2018

State

Closed, Fixed and tested


Description

Adding the attribute [JsonIgnore] to a property like this

[JsonIgnore]
[Display(
GroupName = SystemTabNames.Content,
Order = 200)]
[CultureSpecific]
[UIHint(UIHint.Textarea)]
public virtual string TeaserText

removes the property from the Find object, except for the instances in ContentApiModel. The property is still present in this section. Is this correct?

The property is also in the json feed to the client.

What is the best practice for ignoring properties in the json feed to the client?