1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-26 09:48:56 -05:00

* 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

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) }