comparison modules/array.tp @ 271:bb4723fec05e

Support for encoding objects, dictionaries, lists and arrays to JSON in json module
author Michael Pavone <pavone@retrodev.com>
date Sat, 19 Jul 2014 19:59:51 -0700
parents 56409de95f55
children fb54a3af9c86
comparison
equal deleted inserted replaced
270:b74956a2196f 271:bb4723fec05e
142 str 142 str
143 } else: { 143 } else: {
144 "" 144 ""
145 } 145 }
146 } 146 }
147
148 jsonEncode <- {
149 parts <- map: :el { json encode: el }
150 "[" . (parts join: ",") . "]"
151 }
147 } 152 }