1
[
2
'{{repeat(5, 7)}}',
3
{
4
_id: '{{objectId()}}',
5
index: '{{index()}}',
6
guid: '{{guid()}}',
7
isActive: '{{bool()}}',
8
balance: '{{floating(1000, 4000, 2, "$0,0.00")}}',
9
picture: 'http://placehold.it/32x32',
10
age: '{{integer(20, 40)}}',
11
eyeColor: '{{random("blue", "brown", "green")}}',
12
name: '{{firstName()}} {{surname()}}',
13
gender: '{{gender()}}',
14
company: '{{company().toUpperCase()}}',
15
email: '{{email()}}',
16
phone: '+1 {{phone()}}',
17
address: '{{integer(100, 999)}} {{street()}}, {{city()}}, {{state()}}, {{integer(100, 10000)}}',
18
about: '{{lorem(1, "paragraphs")}}',
19
registered: '{{date(new Date(2014, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss Z")}}',
20
latitude: '{{floating(-90.000001, 90)}}',
21
longitude: '{{floating(-180.000001, 180)}}',
22
tags: [
23
'{{repeat(7)}}',
24
'{{lorem(1, "words")}}'
25
],
26
friends: [
27
'{{repeat(3)}}',
28
{
29
id: '{{index()}}',
30
name: '{{firstName()}} {{surname()}}'
31
}
32
],
33
greeting: function (tags) {
34
return 'Hello, ' + this.name + '! You have ' + tags.integer(1, 10) + ' unread messages.';
35
},
36
favoriteFruit: function (tags) {
37
var fruits = ['apple', 'banana', 'strawberry'];
38
return fruits[tags.integer(0, fruits.length - 1)];
39
}
40
}
41
]
Click "Generate"
and wait for
the magic here
1