0

I've created a JSON Page type content on Drupal 8/9/10 as below that has JSON Config as below. I used this field to build the headless content that needs to exposed to UI Apps.

enter image description here

I want to expose this as headless content API ( JSON Configuration alone ) . But when I access this JSON Page with JSON API module, I get JSON Config of this page as another data field [field_json_config] with string value as below.

enter image description here

Is there a way to expose this JSON Config as API as this will be the actual content API .

I even created JSON Field and set that as field type, still the API gives string.

Thanks,

2
  • Is there a reason you are not adding fields for each item in the json? Adding json directly sort of defeats the purpose of a CMS. Commented Jun 29, 2023 at 23:02
  • Raw json just a view. JSON is composed with the field view in tree structure . Content editors will use same field editor Commented Jun 30, 2023 at 4:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.