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

Numeric values in JSON.

    XMLWordPrintable

Details

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

    • 1746

    Description

      Recent builds enclose (integer) numeric values in quotes, such as

      {"setup-priority": "7"}

      .

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

      {"setup-priority": 7}

      .

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: