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
  • How does Special Keys work?
  • The following is a list of all special keys from FakeMyJSON:

Was this helpful?

  1. Special Keys and Values

Special Keys

FakeMyJSON also generates random data based on your chosen keys in your JSON.

PreviousMiscellaneous

Last updated 4 years ago

Was this helpful?

How does Special Keys work?

If your JSON contain an key of the list below (for example: "age") then FakeMyJSON generate random data based on the faker formatter: "numberBetween(0,100)" (checkout faker formatter: ).

Additionally if your key matches a "Faker Formatter" then the random generated data for that key will be based on the detected "Faker Formatter". For detecting a "Faker Formatter" your key gets lower-cased and checked camelized against the "Faker Formatter"-Library.

The following is a list of all special keys from FakeMyJSON:

Special Key

Faker Formatter

phone

phoneNumber

tel

phoneNumber

telephone

phoneNumber

smartphone

phoneNumber

mobile

phoneNumber

mobilephone

mobileNumber

mobile

mobileNumber

mobile_phone

mobileNumber

smartphone

mobileNumber

smart_phone

mobileNumber

company_name

company

companyname

company

greeting

text

about

text

description

text

descr

text

desc

text

date

date

_id

randomNumber

id

randomNumber

index

randomNumber

price

price

cost

price

fee

price(0,100)

bill

price

demand

price

discount

price(0,100)

guid

uuid

isactive

boolean

is_active

boolean

bool

boolean

true

randomElement('true', 'false')

false

randomElement('true', 'false')

age

numberBetween(0,100)

color

colorName

eyecolor

colorName

hex

hexcolor

gender

randomElement(['male', 'female'])

lorem

text

lorem_ipsum

text

loremipsum

text

lorem-ipsum

text

lat

latitude

long

longitude

lng

longitude

geolat

latitude

geo_lat

latitude

geolong

longitude

geo_long

longitude

geolng

longitude

geo_lng

longitude

picture

imageUrl

img

imageUrl

image

imageUrl

html

randomHTML

path

file

mime

mimeType

ext

fileExtension

ip

ipv4

domain

domainName

web

domainName

website

domainName

homepage

domainName

user

userName

user_name

userName

pw

password

street

streetName

road

streetName

lane

streetName

avenue

streetName

roadway

streetName

boulevard

streetName

town

city

village

city

etate

city

metropolis

city

megalopolis

city

urban

city

civic

city

zipcode

postcode

zip_code

postcode

zip-code

postcode

zip

postcode

postalcode

postcode

postal_code

postcode

postal-code

postcode

numberBetween