JSON-Generator: Random JSON data henerator

http://beta.json-generator.com/

[
  '{{repeat(5, 7)}}',
  {
    _id: '{{objectId()}}',
    index: '{{index()}}',
    guid: '{{guid()}}',
    isActive: '{{bool()}}',
    balance: '{{floating(1000, 4000, 2, "$0,0.00")}}',
    picture: 'http://placehold.it/32x32',
    age: '{{integer(20, 40)}}',
    eyeColor: '{{random("blue", "brown", "green")}}',
    name: {
      first: '{{firstName()}}',
      last: '{{surname()}}'
    },
    company: '{{company().toUpperCase()}}',
    email: function (tags) {
      // Email tag is deprecated, because now you can produce an email as simple as this:
      return (this.name.first + '.' + this.name.last + '@' + this.company + tags.domainZone()).toLowerCase();
    },
    phone: '+1 {{phone()}}',
    address: '{{integer(100, 999)}} {{street()}}, {{city()}}, {{state()}}, {{integer(100, 10000)}}',
    about: '{{lorem(1, "paragraphs")}}',
    registered: '{{moment(this.date(new Date(2014, 0, 1), new Date())).format("LLLL")}}',
    latitude: '{{floating(-90.000001, 90)}}',
    longitude: '{{floating(-180.000001, 180)}}',
    tags: [
      '{{repeat(7)}}',
      '{{lorem(1, "words")}}'
    ],
    range: range(10),
    friends: [
      '{{repeat(3)}}',
      {
        id: '{{index()}}',
        name: '{{firstName()}} {{surname()}}'
      }
    ],
    greeting: function (tags) {
      return 'Hello, ' + this.name.first + '! You have ' + tags.integer(5, 10) + ' unread messages.';
    },
    favoriteFruit: function (tags) {
      var fruits = ['apple', 'banana', 'strawberry'];
      return fruits[tags.integer(0, fruits.length - 1)];
    }
  }
]

Generate random json data

[
  {
    "_id": "559222beb96b75882fedfdc4",
    "index": 0,
    "guid": "bcebfc29-0d3f-498f-b476-cdf61c79a245",
    "isActive": false,
    "balance": "$2,739.53",
    "picture": "http://placehold.it/32x32",
    "age": 27,
    "eyeColor": "brown",
    "name": {
      "first": "Andrews",
      "last": "Marquez"
    },
    "company": "GEEKKO",
    "email": "andrews.marquez@geekko.co.uk",
    "phone": "+1 (917) 539-3655",
    "address": "997 Ridgecrest Terrace, Salunga, Alaska, 7639",
    "about": "Eu consequat nostrud in fugiat sit nulla. Velit consectetur deserunt ullamco cillum deserunt anim aliqua nisi consequat excepteur voluptate adipisicing. Irure amet culpa ex do consectetur. Consequat duis et ex non excepteur ut.\r\n",
    "registered": "Wednesday, July 9, 2014 6:22 PM",
    "latitude": -0.116454,
    "longitude": 7.61966,
    "tags": [
      "est",
      "occaecat",
      "ipsum",
      "do",
      "est",
      "sint",
      "excepteur"
    ],
    "range": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9
    ],
    "friends": [
      {
        "id": 0,
        "name": "Tammy Meyers"
      },
      {
        "id": 1,
        "name": "Fuentes Blackwell"
      },
      {
        "id": 2,
        "name": "Mullen Stein"
      }
    ],
    "greeting": "Hello, Andrews! You have 6 unread messages.",
    "favoriteFruit": "banana"
  },
  {
    "_id": "559222be01ca1a9f0eb71bd5",
    "index": 1,
    "guid": "054b8591-50d8-4d08-b04c-6165cfee6aaa",
    "isActive": true,
    "balance": "$3,441.57",
    "picture": "http://placehold.it/32x32",
    "age": 31,
    "eyeColor": "green",
    "name": {
      "first": "Baxter",
      "last": "Lee"
    },
    "company": "KRAGGLE",
    "email": "baxter.lee@kraggle.biz",
    "phone": "+1 (992) 502-3795",
    "address": "998 Kingsway Place, Moquino, Nebraska, 696",
    "about": "Amet veniam ullamco sunt sunt est ex nostrud ea anim. Magna anim exercitation sunt aute ex ea qui ipsum consequat fugiat ullamco. Sunt excepteur sunt elit cupidatat elit cillum aliquip duis enim ipsum nisi ipsum. Ex exercitation laboris adipisicing nulla duis occaecat ex sunt tempor tempor voluptate. Do deserunt quis id minim aliquip id ipsum fugiat occaecat magna irure eiusmod. Ullamco aliquip consequat aliquip in dolore quis qui eiusmod nisi culpa ipsum exercitation incididunt. Occaecat sunt pariatur irure sint pariatur et exercitation aute cillum ea.\r\n",
    "registered": "Monday, November 10, 2014 6:48 AM",
    "latitude": -15.217318,
    "longitude": 64.984945,
    "tags": [
      "non",
      "elit",
      "nisi",
      "quis",
      "culpa",
      "id",
      "ullamco"
    ],
    "range": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9
    ],
    "friends": [
      {
        "id": 0,
        "name": "Garrison Houston"
      },
      {
        "id": 1,
        "name": "Hewitt Erickson"
      },
      {
        "id": 2,
        "name": "Fisher Roberts"
      }
    ],
    "greeting": "Hello, Baxter! You have 6 unread messages.",
    "favoriteFruit": "apple"
  },
  {
    "_id": "559222befc7d387117c1cb9f",
    "index": 2,
    "guid": "a2900498-1d51-4765-a61f-be241f32c8dc",
    "isActive": true,
    "balance": "$2,145.01",
    "picture": "http://placehold.it/32x32",
    "age": 31,
    "eyeColor": "green",
    "name": {
      "first": "Murphy",
      "last": "Curry"
    },
    "company": "DATAGENE",
    "email": "murphy.curry@datagene.ca",
    "phone": "+1 (971) 546-3489",
    "address": "610 Hart Place, Farmers, Arizona, 660",
    "about": "Et elit laboris adipisicing qui cupidatat ullamco culpa consectetur consectetur aute minim ut pariatur. Ut et ad laboris duis ad cupidatat incididunt eu. Ipsum dolor ex in pariatur dolor magna fugiat et sint sint. Nisi proident Lorem sint consequat excepteur. Incididunt velit aute aute adipisicing elit incididunt consectetur laboris fugiat.\r\n",
    "registered": "Saturday, August 30, 2014 1:48 AM",
    "latitude": 42.468967,
    "longitude": -173.197221,
    "tags": [
      "Lorem",
      "quis",
      "nisi",
      "magna",
      "ut",
      "ipsum",
      "eiusmod"
    ],
    "range": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9
    ],
    "friends": [
      {
        "id": 0,
        "name": "Serrano Herman"
      },
      {
        "id": 1,
        "name": "Guthrie Preston"
      },
      {
        "id": 2,
        "name": "Riley Baker"
      }
    ],
    "greeting": "Hello, Murphy! You have 5 unread messages.",
    "favoriteFruit": "banana"
  },
  {
    "_id": "559222be1311a8fd78c7f207",
    "index": 3,
    "guid": "e0a02f4d-416f-475c-bebf-17ffe4aae134",
    "isActive": true,
    "balance": "$2,100.04",
    "picture": "http://placehold.it/32x32",
    "age": 21,
    "eyeColor": "green",
    "name": {
      "first": "Petersen",
      "last": "Snider"
    },
    "company": "STREZZO",
    "email": "petersen.snider@strezzo.io",
    "phone": "+1 (880) 415-2608",
    "address": "553 Trucklemans Lane, Nanafalia, Maryland, 1769",
    "about": "Ut consectetur Lorem nulla duis irure occaecat duis proident laborum veniam proident non velit. Esse incididunt ipsum eiusmod mollit ullamco. Reprehenderit mollit in dolor laboris nulla elit.\r\n",
    "registered": "Thursday, April 16, 2015 5:17 PM",
    "latitude": -54.477337,
    "longitude": 1.036731,
    "tags": [
      "tempor",
      "ullamco",
      "exercitation",
      "fugiat",
      "in",
      "officia",
      "minim"
    ],
    "range": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9
    ],
    "friends": [
      {
        "id": 0,
        "name": "Conway Merrill"
      },
      {
        "id": 1,
        "name": "Dotson Hunt"
      },
      {
        "id": 2,
        "name": "Pate Avila"
      }
    ],
    "greeting": "Hello, Petersen! You have 5 unread messages.",
    "favoriteFruit": "banana"
  },
  {
    "_id": "559222be22813df11b2947f3",
    "index": 4,
    "guid": "064731d0-b91d-46cc-a339-c491962f3a16",
    "isActive": false,
    "balance": "$1,893.97",
    "picture": "http://placehold.it/32x32",
    "age": 35,
    "eyeColor": "brown",
    "name": {
      "first": "Bethany",
      "last": "Davidson"
    },
    "company": "XUMONK",
    "email": "bethany.davidson@xumonk.tv",
    "phone": "+1 (966) 525-2547",
    "address": "790 Caton Avenue, Weogufka, Iowa, 7344",
    "about": "Lorem adipisicing deserunt esse et ex dolore nisi exercitation. Excepteur non minim quis nostrud consequat ipsum esse veniam. Est sint qui fugiat elit anim proident proident magna enim velit enim.\r\n",
    "registered": "Sunday, November 23, 2014 3:30 AM",
    "latitude": -14.13626,
    "longitude": -168.628042,
    "tags": [
      "commodo",
      "nostrud",
      "consectetur",
      "velit",
      "eiusmod",
      "quis",
      "esse"
    ],
    "range": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9
    ],
    "friends": [
      {
        "id": 0,
        "name": "Briana Beasley"
      },
      {
        "id": 1,
        "name": "Cherry Ryan"
      },
      {
        "id": 2,
        "name": "Gomez Guerrero"
      }
    ],
    "greeting": "Hello, Bethany! You have 5 unread messages.",
    "favoriteFruit": "strawberry"
  }
]

1 thought on “JSON-Generator: Random JSON data henerator

  1. I have been browsing online greater than three hours as of late, but I by no means found any attention-grabbing article like yours. It’s pretty worth enough for me. In my opinion, if all web owners and bloggers made excellent content as you did, the internet shall be a lot more helpful than ever before. “Revolution is not a onetime event.” by Audre Lorde.

Leave a Reply

Your email address will not be published. Required fields are marked *