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

Add trailing newline to formatted JSON output

XMLWordPrintable

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

      Currently there's no trailing newline to formatted JSON output. This can be annoying when using command-line tools to interact with the REST API.

      Though there's also something to be said for not pretty-printing the output by default also since this increases the size of the messages.

      Workaround is something like feeding the output into a JSON formatter such as python -mjson.tool.

            jgloncak Jozef Gloncak
            readams Rob Adams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: