Last active
December 16, 2016 07:47
-
-
Save steve21124/0daa6a82c801c62895fc0e535cf4603e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$jason": { | |
"head": { | |
"data": { | |
"members": [ | |
{ | |
"restaurant": "Italian", | |
"menu":[{ | |
"breakfast":"burger", | |
"launch":"hotdog" | |
} | |
] | |
}, | |
{ | |
"restaurant": "Japan", | |
"zipcode":"94331", | |
"menu":[{ | |
"launch":"burger", | |
"dinner":"hotdog" | |
} | |
] | |
}, | |
] | |
}, | |
"templates": { | |
"body": { | |
"sections": [{ | |
"items": { | |
"{{#each members}}": { | |
"type":"vertical", | |
"style": { | |
"padding": "10", | |
"font": "HelveticaNeue-Bold", | |
"size": "15" | |
}, | |
"components": { | |
"{{#each Object.keys(this).map(function(key){return {'key': key}; }) }}" : { | |
"type": "label", | |
"text": "{{key}} : {{value}}" | |
} | |
} | |
} | |
} | |
}] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment