Last active
December 15, 2015 23:58
-
-
Save czy88840616/5343715 to your computer and use it in GitHub Desktop.
问题:从模板中推导出正确的json结构
This file contains 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
#set($orderList = $!{result.orderList}) | |
#foreach($order in $!orderList) | |
#set($shop = $!{order.shop}) | |
$!{shop.singleItemId} | |
#end |
This file contains 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
{ | |
"result": { | |
"orderList": [ | |
{ | |
"shop": { | |
"singleItemId": "" | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
挺爷加油。。。。