FakeMyJSON
  • FakeMyJSON - Documentation
  • Faker Formatters
    • Base
    • Lorem Ipsum Text
    • Person
    • Address
    • Phone Number
    • Company
    • Real Text
    • Date and Time
    • Internet
    • User Agent
    • Payment
    • Color
    • File
    • Image
    • Uuid
    • Barcode
    • Miscellaneous
  • Special Keys and Values
    • Special Keys
  • FakeMyJSON.io
  • Start generating random JSON!
Powered by GitBook
On this page

Was this helpful?

FakeMyJSON - Documentation

NextBase

Last updated 4 years ago

Was this helpful?

Welcome to the FakeMyJSON documentation for version 1.0. This documentation show the main features of FakeMyJSON and how you can customize your json for your special needs.

The main goal of FakeMyJSON is to take off as much work for you as possible. Your JSON scructure gets automatically analysed and for each data you get an faked dataset in the same datatype as your value before.

But sadly we cant provide for each possible data a 100% accurate fake data. In special cases you can manipulate the output by using one of the following "Faker Formatters". For generating the fake data the following library is used: . Every Formatter mentioned in the readme of can be used as a string value in your JSON.

{
	"id": "5e9b4f959aea8972c15d22ab",
	"picture": "http://placehold.it/32x32",
	"age": 30,
	"name": "Cooke Valenzuela",
	"gender": "male",
	"company": "VERTIDE",
	"email": "cookevalenzuela@vertide.com",
	"phone": "+1 (898) 424-2198",
	"address": "744 Guider Avenue, Coloma, Pennsylvania, 7905",
	"about": "Elit eu tempor duis non. Occaecat tempor tempor aliqua irure excepteur laboris ea velit consectetur voluptate. Elit labore qui labore reprehenderit exercitation tempor dolor pariatur. Sint reprehenderit voluptate qui aute anim fugiat. Enim eu cupidatat labore eiusmod cupidatat sit ex reprehenderit non sunt fugiat magna proident.\r\n",
	"registered": "2016-08-28T07:26:48 -02:00",
	"latitude": -78.663834,
	"longitude": 132.975797,
	"tags": [
		"labore",
		"amet",
		"ad",
		"laboris",
		"qui",
		"fugiat",
		"nisi"
	],
	"friends": [
		{
			"id": 0,
			"name": "Lizzie Spence"
		},
		{
			"id": 1,
			"name": "Gardner Buck"
		},
		{
			"id": 2,
			"name": "Nora Patel"
		}
	],
	// Example Faker Formatters
	"randomDigit": "randomDigit",
	"randomDigitNotNull": "randomDigitNotNull",
	"randomNumber": "randomNumber",
	"numberBetween": "numberBetween(0,100)",
	"word": "word",
	"words": "words",
	"title": "title",
	"title_male": "titleMale",
	"firstName": "firstName",
	"lastName": "lastName",
	"city": "city",
	"streetName": "streetName",
	"streetAddress": "streetAddress",
	"postcode": "postcode",
	"country": "country",
	"jobTitle": "jobTitle",
	"timestamp": "unixTime",
	"html": "randomHTML",
	"currencyCode": "currencyCode",
	"image": "image",
	"mime": "avi",
	"ip": "127.0.0.1",
	"shuffle": "shuffle(['1', '2', '3'])"
}
{
  "id": 44,
  "picture": "https://loremflickr.com/640/480/kitten?random=575",
  "age": "76",
  "name": "Mr. Waldo Altenwerth PhD",
  "gender": "male",
  "company": "Williamson, Skiles and Weber",
  "email": "lshanahan@yahoo.com",
  "phone": "+1.453.856.6067",
  "address": "1398 Lang Falls\nNikitamouth, SD 42617",
  "about": "test",
  "registered": "2002-02-23",
  "latitude": -21.980829,
  "longitude": 126.20143,
  "tags": [
    "ut",
    "iure",
    "maxime",
    "ea",
    "fugiat",
    "eum",
    "et"
  ],
  "friends": [
    {
      "id": 892,
      "name": "Tiana Kunze"
    },
    {
      "id": 72339436,
      "name": "Dr. Carlee Corkery Sr."
    },
    {
      "id": 86,
      "name": "Dr. Destiny Farrell V"
    }
  ],
  "randomDigit": 7,
  "randomDigitNotNull": 4,
  "randomNumber": 25,
  "numberBetween": 22,
  "word": "est",
  "words": [
    "consequatur",
    "modi",
    "est"
  ],
  "title": "Mr.",
  "title_male": "Prof.",
  "firstName": "Blair",
  "lastName": "Auer",
  "city": "Reneemouth",
  "streetName": "Yesenia Camp",
  "streetAddress": "281 Wilbert Pines Apt. 701",
  "postcode": "75890",
  "country": "China",
  "jobTitle": "Solderer",
  "timestamp": 104704174,
  "html": "<html><head><title>Sint cumque placeat temporibus vel atque magnam omnis molestiae non est at id.</title></head><body><form action=\"example.org\" method=\"POST\"><label for=\"username\">ipsum</label><input type=\"text\" id=\"username\"><label for=\"password\">occaecati</label><input type=\"password\" id=\"password\"></form><div id=\"2176\">Ea quia.</div></body></html>\n",
  "currencyCode": "TMT",
  "image": "C:\\WINDOWS\\TEMP\\45fcc01dcfc27e0fa4fcc403cf6f9682.jpg",
  "mime": "application/zip",
  "ip": "124.203.245.119",
  "shuffle": [
    "2",
    "1",
    "3"
  ]
}

Here is a copy of the Formatters of with examples how to use in your JSON.

Faker
Faker
Faker