BuildJsonString Fixture

TODO

The BuildJsonStringFixture returns a JSON string with whitespace between elements removed.

!|script     |BuildJsonStringFixture                        |
|startNewJsonObjectMessage;                                 |
|addString;  |surName  |string                              |
|addString;  |firstName|string                              |
|addInt;     |number1  |1                                   |
|startObject;|branch                                        |
|addString;  |id       |cd6cf9c2-662c-495d-82f6-dc0435b882f5|
|endObject;                                                 |
|startArray; |phoneNumber                                   |
|startObject;                                               |
|addString;  |type     |home                                |
|addString;  |number   |0123456789                          |
|endObject;                                                 |
|startObject;                                               |
|addString;  |type     |home                                |
|addString;  |number   |11223344                            |
|endObject;                                                 |
|endArray;                                                  |
|addBoolean; |test     |false                               |
|show        |generateJson;                                 |

returns

{"surName":"string","firstName":"string","number1":1,"branch":{"id":"cd6cf9c2-662c-495d-82f6-dc0435b882f5"},"phoneNumber":[{"type":"home","number":"0123456789"},{"type":"home","number":"11223344"}],"test":false}

If formatted (not supported) the string looks like

{
  "surName": "string",
  "firstName": "string",
  "number1": 1,
  "branch": {
    "id": "cd6cf9c2-662c-495d-82f6-dc0435b882f5"
  },
  "phoneNumber": [
    {
      "type": "home",
      "number": "0123456789"
    },
    {
      "type": "home",
      "number": "11223344"
    }
  ],
  "test": false
}