Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-786

Boolean values in JSON.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Helium
    • restconf
    • None
    • Operating System: Linux
      Platform: PC

    • 1745

      Recent builds enclose boolean values in quotes, such as

      {"uptodate: "true"}

      .

      http://tools.ietf.org/html/rfc7159#section-7 prescribes quotes for strings, but http://tools.ietf.org/html/rfc7159#section-3 does NOT prescribe quotes for boolean values.
      Therefore, the correct encoding is without quotes, such as

      {"update": true}

      .

            rovarga Robert Varga
            vrpolak Vratko Polak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: