Naren Karanam
Naren Karanam

Reputation: 61

Drupal : Accessing "Json Page" type content as headless API with "JSON:API" module

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,

Upvotes: 0

Views: 169

Answers (0)

Related Questions