Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21589

Boolean values are serialized as string in JSON responses of the REST API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.2-rc1
    • 5.1, 5.2-alpha1
    • Platform > REST API v2
    • None

    Description

      In JSON REST API v2 responses, the boolean values are returned as string ("false" or "true") instead of real boolean values. As a result, getting the real boolean value in JS requires a post processing...

      It seems like it because of eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor::serializeBoolean

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h