Simple JSON serialization using .tupleof and .stringof

Code



Application output:

[ { "complete": true, "customerAddress": "address A", "date": "01-dec-2015", "itemId": 12, "price": 69.99, "storeLocation": { "latitude": 18.234, "longitude": 32.123 } }, { "complete": true, "customerAddress": "address B", "date": "04-dec-2015", "itemId": 15, "price": 89.99, "storeLocation": { "latitude": 15.8765, "longitude": 48.12 } }, { "complete": false, "customerAddress": "address C", "date": "09-dec-2015", "itemId": 18, "price": 19.99, "storeLocation": { "latitude": 87.353, "longitude": 12.63 } }, { "complete": false, "customerAddress": "address D", "date": "12-dec-2015", "itemId": 25, "price": 99.99, "storeLocation": { "latitude": 18.234, "longitude": 32.123 } } ]

Paste info


Author: Guest
Views: 359
Private: no
Expires: Never
Uploaded: 12.12.15 16:19
Votes: 0

Compilation


Compiler: DMD 2.076.1 ( 2.076.1 )
Pointer size: m64

Actions