Create a new file with extension JSON, such as One.json ()
Then enter the following content
{"Item": {<cHTML><!--Data Preparation section, you can query from the database--<bag id=item suffix=0> <we name=name>Potatoes</We> <we name=price >1.24</We> <we name=Unit>KG</We></bag><bag id=item suffix=1> <we name=name>Shirt</We> <we name=price >68</We> <we name=Unit>Thing</We></bag><bag id=item suffix=2> <we name=name>Coke</We> <we name=price >2.20</We> <we name=Unit>Bottle</We></bag><bag id=item suffix=3> <we name=name>Book</We> <we name=price >51.24</We> <we name=Unit>This</We></bag></cHTML><cHTML><!--formal JSON format content-- <name>@{item:name}</name> < price value>@{item:price}</price ><!--The Value property parameter indicates the output without quotation marks-- <unit>@{item:unit}</Unit></cHTML>}, "Sort": @{int:@{item:getsuffix}+1}}
The effect in EditPlus is as
The effects of viewing in a browser are as follows
Example file _samples/app/one.json in the _samples/app/directory of the light-open platform
Related Resources Download :
mobile App Server development from getting started to mastering : http://download.csdn.net/detail/tx18/8741611
quickly build a mobile App server : http://download.csdn.net/detail/tx18/8737507
Light on the platform will not be regularly upgraded to provide you with more powerful and easy features, please pay attention to download the latest version: http://download.csdn.net/user/tx18
Introduction to Mobile (Android, IOS) app server development: first JSON