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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1, 5.2-alpha1
    • Fix Version/s: 5.2-rc1
    • Component/s: Platform > REST API v2
    • Labels:
      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

              Assignee:
              Unassigned
              Reporter:
              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