- Download/Clone this repo
- Run json-parser.sketchplugin
#####1. Say you have a group that looks like this:
#####2. And a JSON array that looks like this:
[{
"title": "Holabila",
"date": {
"formatted": "25 Jan 2015",
"time_ago": "5 min ago"
},
"name": "Koen Vendrik"
},
{
"title": "Bilahola",
"date": {
"formatted": "28 Feb 2015",
"time_ago": "2 days ago"
},
"name": "Jaer Pollux"
}]
#####3. Now include JSON path variables in your layer names like this:
#####4. Duplicate the group as many times as you want (in this case probably two times as you have two items in the array)
#####5. Select the groups, run the plugin and paste in the JSON
#####6. Voila! The plugin replaced all text values with data from the JSON object