- changed version to 0.6
Json support
Add Gson (Google Json) support to Serviio restlet app.
I tried other Json lib, and Gson is currently the best : - Jackson is slower - Jettison is buggy...
Restlet doesn't offer Gson Rest extension, so i had to make this one.
See the source in the attached zip file.
Comments (8)
-
repo owner -
Account Deleted You code use it directly (compatible with Serviio v0.5.2).
- Gson is free Apache Licence 2.0 (http://code.google.com/p/google-gson/)
- My code has no licence (it's a patch...)
- Gson restlet extension shouldn't have any, cause I made it myself...
-
repo owner The Gson extension, shall I the include it as a jar or will you give me the source to include in Serviio as an internal class?
-
Account Deleted - attached org.restlet.ext.gson-2.1-M2.jar
- attached serviio-addons-gson.jar.zip
- attached gson-1.7.1.jar
Update Gson 1.6 => 1.7.1
-
Account Deleted Restlet engine find extension dynamically in jars. It may work as internal class but it's better if it is in another jar (like the Xstream extension). Gson extension is not related to Serviio, and I don't think you'll ever need to change its source. If you still want to check out, ask me.
-
repo owner Ok, cool. Are you planning contributing it to a future version of Restlet?
-
Account Deleted Yes I wish!
-
repo owner - changed status to resolved
- Log in to comment
Perfect. Can I just use your code? Or is it under some license?