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.
Problem/Motivation
Having a Rest export display setting to fields it is possible to select 'raw'. One would expect a boolean / number for those field types.
The boolean are represented by "Off" and "On" strings which seems a double error as those values are configured for the particular field.
Similar for a 'normal' request like curl --header "Accept: application/json" --request GET http://drupal.d8/node/1
where all values are strings.
Where is this stringify all values done?
Comments
Comment #1
clemens.tolboomComment #2
dawehnerYou can configure them to be "boolean" in that configuration form of the field.
Comment #3
R.Muilwijk CreditAttribution: R.Muilwijk commentedAs per comment #2 this is by design?
Comment #4
Wim Leers