Skip to content

Instantly share code, notes, and snippets.

@czy88840616
Last active December 15, 2015 23:58
Show Gist options
  • Save czy88840616/5343715 to your computer and use it in GitHub Desktop.
Save czy88840616/5343715 to your computer and use it in GitHub Desktop.
问题:从模板中推导出正确的json结构
#set($orderList = $!{result.orderList})
#foreach($order in $!orderList)
#set($shop = $!{order.shop})
$!{shop.singleItemId}
#end
{
"result": {
"orderList": [
{
"shop": {
"singleItemId": ""
}
}
]
}
}
@neekey
Copy link

neekey commented Apr 9, 2013

挺爷加油。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment