Skip to content

JSON format PrintHandler #2678

@dry11orange

Description

@dry11orange

Expected behavior

{
  "a" : 100,
  "b" : 234.456,
  "child" : [
    {
      "id" : 0,
      "name" : "lucy_0"
    },
    {
      "id" : 1,
      "name" : "lucy_1"
    },
    {
      "id" : 2,
      "name" : "lucy_4"
    },
    {
      "id" : 3,
      "name" : "lucy_9"
    },
    {
      "id" : 4,
      "name" : "lucy_16"
    }
  ],
  "pair" : {
    "a" : 123213,
    "b" : "weoifweifj"
  },
  "str" : "sdfsdf"
}

Actual behavior

{
  "a" : 100,
  "b" : 234.456,
  "child" : [
    {
      "id" :       0,
      "name" :       "lucy_0"
    },
    {
      "id" :       1,
      "name" :       "lucy_1"
    },
    {
      "id" :       2,
      "name" :       "lucy_4"
    },
    {
      "id" :       3,
      "name" :       "lucy_9"
    },
    {
      "id" :       4,
      "name" :       "lucy_16"
    }
  ],
  "pair" : {
    "a" : 123213,
    "b" : "weoifweifj"
  },
  "str" : "sdfsdf"
}

Steps to reproduce the problem

(please make this a SSCCE, if applicable and reasonable)

POCO version

1801

Compiler and version

vs2015

Operating system and version

win7 64

Other relevant information

When formatting vector, there have problem

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions