Skip to content

Commit 0935dd0

Browse files
committed
Add an example json file with all the formats
1 parent be62278 commit 0935dd0

File tree

2 files changed

+55
-6
lines changed

2 files changed

+55
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
- [Date/Time strings](#datetime-strings)
1515
- [URI strings](#uri-strings)
1616
- [Email address strings](#email-address-strings)
17-
- [JWT](#jwt)
1817
- [Other formats](#other-formats)
1918
- [Object Formats](#object-formats)
2019
- [Firestore Timestamps](#firestore-timestamps)
@@ -234,8 +233,6 @@ Will result in
234233
}
235234
```
236235

237-
### JWT strings
238-
239236
The following table illustrates the results of different email strings
240237

241238
| String | Variant |
@@ -313,6 +310,6 @@ Please feel free to request additional formats by opening a [Github issue](https
313310

314311
## Roadmap
315312

316-
- Infer Firestore timestamps
317-
- Infer semver string
318-
- Infer Emoji
313+
- Infer credit card numbers
314+
- Infer credit card types
315+
- Infer mac addresses

examples.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"null": null,
3+
"true": true,
4+
"false": false,
5+
"integer": 123,
6+
"float": 123.456,
7+
"string": "foo bar",
8+
"object": {
9+
"foo": "bar"
10+
},
11+
"array": [
12+
"foo",
13+
"bar"
14+
],
15+
"formattedStrings": {
16+
"datetime": "2019-01-01 00:00:00.000Z",
17+
"date": "2019-01-01",
18+
"time": "00:00:00.000Z",
19+
"unix": "1596597629980",
20+
"uri": "https://www.example.com/foo#bar",
21+
"email": "[email protected]",
22+
"currency-iso4217": "USD",
23+
"currency-english": "Euro",
24+
"currency-symbol": "",
25+
"currency-crypto": "ETH",
26+
"country-iso3166-3": "USA",
27+
"country-iso3166-2": "GB",
28+
"tld": ".com",
29+
"ipv4": "192.168.0.1",
30+
"ipv6": "2001:db8:1234::1",
31+
"language-iso639-1": "en",
32+
"language-iso639-2": "eng",
33+
"language-english": "Arabic",
34+
"language-native": "Español",
35+
"phoneNumber": "+1 (555) 555-5555",
36+
"uuid": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
37+
"hostname": "example.com",
38+
"filesize": "544B",
39+
"json": "{\"foo\":\"bar\"}",
40+
"json5": "{foo:1,}",
41+
"jsonPointer": "/foo/bar",
42+
"emoji": "🤔",
43+
"semver": "1.2.3",
44+
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.sruoLZNJ59anK67z25t80L62OXDerSiAhWerW-usZLQ"
45+
},
46+
"formattedObjects": {
47+
"firestoreTimestamp": {
48+
"seconds": 1642533020,
49+
"nanoseconds": 932000000
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)