Create Random JSON Data To Exercise Your App

If you are working with JSON in your iOS app, this tool can generate random data based on a format and repeat count that you specify.

For example, inputing this:

[
'{{repeat(2)}}',
{
    id: '{{index}}',
    guid: '{{guid}}',
    age: '{{numeric(20,40)}}',
    name: '{{firstName}} {{lastName}}',
    gender: function(idx) {
        return this.bool() ? 'male' : 'female';
    },
       }
]

Will create test data like this:

{
  "id": 1,
  "jsonrpc": "2.0",
  "total": 2,
  "result": [
      {
          "id": 1,
          "guid": "9149602c-c151-48ac-b772-5b73762f2df4",
          "age": 22,
          "name": "Madeline Warren",
          "gender": "female"
      },
      {
          "id": 2,
          "guid": "3ea19d46-33cc-47b9-9282-3554fd815e6a",
          "age": 25,
          "name": "Natalie Goodman",
          "gender": "female"
      }
  ]
}