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
  • boolean(chanceOfGettingTrue)
  • sha1
  • sha256
  • locale
  • countryCode
  • languageCode
  • currencyCode
  • emoji

Was this helpful?

  1. Faker Formatters

Miscellaneous

boolean(chanceOfGettingTrue)

Output Type: Boolean

Argument

Type

Default

Valid Values

chanceOfGettingTrue

Integer

50

{
    "active": "boolean",
    "status": "boolean(10)"
}
{
    "active": true,
    "status": false
}

sha1

Output Type: String

{
    "hash": "sha1"
}
{
    "hash": "d991098bb20d14fff03f306d0d799020c3e640c8",
}

sha256

Output Type: String

{
    "hash": "sha256"
}
{
     "hash": "27b3477aa05b137db78254b47a277c99b33856f339c501eacb6b36a5d8159e44"
}

locale

Output Type: String

{
    "locale": "locale"
}
{
    "locale": "ln_CD"
}

countryCode

Output Type: String

{
    "countryCode": "countryCode"
}
{
    "countryCode": "NO"
}

languageCode

Output Type: String

{
    "languageCode": "languageCode"
}
{
    "languageCode": "it"
}

currencyCode

Output Type: String

{
    "currencyCode": "currencyCode"
}
{
    "iban": "BH86LYHC4HA8Q31T905KLZ"
}

emoji

Output Type: String

{
    "emoji": "emoji"
}
{
    "emoji": "😬"
}

PreviousBarcodeNextSpecial Keys

Last updated 4 years ago

Was this helpful?