Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Im trying to get my json output to use square brackets [] to group multiple images in a node like this:
"name" : "Fifth Avenue",
"images" : [
"/images/fifthavenue_hero.jpg",
"/images/fifthavenue_gallery_image4.jpg",
],
},{
instead of this which the viewe is outputting:
"name": "Fifth Avenue",
"images": "/images-locations/cheddar.jpg?,
/images-locations/cheddar2.jpg",
},{
Is there a way or a work around to achieve this please? As a third party app needs this configuration.
Thanks
Comments
Comment #1
flaminhoon CreditAttribution: flaminhoon commentedComment #2
heylookalive CreditAttribution: heylookalive commentedMarking as duplicate of #1319714: Fields with multiple values are not displayed.