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

Numeric values in JSON.

XMLWordPrintable

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

    • 1746

      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}

      .

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

              Created:
              Updated:
              Resolved: