Re: json
- Posted by CoJaBo2 Aug 04, 2012
- 2478 views
bugmagnet said...
That's due to an oddity with maps that I've since posted about separately.
Kind regards,
Bruce/bugmagnet
It looks like writing your own types may be the only solution; e.g., JSONString, JSONNumber, JSONObject, JSONArray, JSONBoolean, JSONNull. As suggested in that post, those would be 2-element sequences, with the first element being the type and the second being the actual value.
You'd have to come up with a way to not have it terribly messy for the programmer to access and create these types though.