The "jsonValue" property returns XML instead of a JSON object for link and image fields


Description

When requesting an item with a link or image field using the Delivery API endpoint, the jsonValue property might return a raw value of the field, which is an unparsed XML. The issue occurs if the requested item does not belong to any site (is not under the Home item in the content tree).

Solution

To resolve the issue, consider one of the following options: