Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JSON generator template for iOS contact creation
[
"{{repeat(100, 100)}}",
{
"fn":{
"name":"{{firstName()}} {{surname()}}"
},
"n":{
"families":"{{surname()}}",
"givens":"{{firstName()}}"
},
"emails":[
{
"params":{
"types":[
"internet"
]
},
"address":"{{surname()}}.{{firstName()}}@gmail9999.com"
}
],
"urls":[
{
"uri":"http://www.{{lorem(1, 'words')}}{{lorem(1, 'words')}}.com"
},
{
"group":"item1",
"uri":"http://www.{{lorem(1, 'words')}}{{lorem(1, 'words')}}.com"
}
],
"tels":[
{
"params":{
"types":[
"cell"
]
},
"number":"({{integer(0, 9)}}{{integer(0, 9)}}{{integer(0, 9)}}) 555-{{integer(0, 9)}}{{integer(0, 9)}}{{integer(0, 9)}}{{integer(0, 9)}}"
},
{
"params":{
"types":[
"work"
]
},
"number":"({{integer(0, 9)}}{{integer(0, 9)}}{{integer(0, 9)}}) 555-{{integer(0, 9)}}{{integer(0, 9)}}{{integer(0, 9)}}{{integer(0, 9)}}"
}
],
"notes":[
{
"description":"{{lorem(1)}}"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment