Document how to return JSON when accessed via JSON:API

Created on 19 May 2022, almost 3 years ago
Updated 12 June 2023, almost 2 years ago

Problem/Motivation

When a JSON field is added to a content type, and then that content type is accessed via JSON:API, the JSON field value is returned as stringified JSON. However, it would be better to return the decoded JSON object using the serialization API β†’ .

Proposed resolution

Add a serializer to decode the JSON object.

API changes

JSON fields will return JSON objects instead of stringified JSON.

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Documentation

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024