<@U0DN24414> and <@U0EACPP46> your functions can ...
# announcements
a
@jkwatson and @natpryce your functions can change to be more correct, right now you throw away generic information so they will not work for things like
List<String>
or
SomeClass<WithGenerics>
and so on. See: http://stackoverflow.com/a/33420043/3679676 for information on this. Short answer is to use a type token:
Copy code
inline fun <reified T: Any> Gson.fromJson(json: String) = this.fromJson<T>(json, object: TypeToken<T>() {}.type)