* update json-io to 2.0.1

This commit is contained in:
Reinhard Pointner 2013-02-22 19:24:40 +00:00
parent 92b75d57a2
commit 4e8df5b005
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def telnet(host, int port, csn = 'utf-8', Closure handler) {
// json-io helpers // json-io helpers
import com.cedarsoftware.util.io.* import com.cedarsoftware.util.io.*
Object.metaClass.objectToJson = { pretty = true -> JsonWriter.objectToJson(delegate, pretty) } Object.metaClass.objectToJson = { JsonWriter.objectToJson(delegate) }
String.metaClass.jsonToObject = { JsonReader.jsonToJava(delegate) } String.metaClass.jsonToObject = { JsonReader.jsonToJava(delegate) }
String.metaClass.jsonToMap = { JsonReader.jsonToMaps(delegate) } String.metaClass.jsonToMap = { JsonReader.jsonToMaps(delegate) }