package Ġutils Ċ Ċ import Ġcom . fasterxml . jackson . module . kotlin . jackson ObjectMapper Ċ import Ġplay . mvc . Result Ċ import Ġplay . test . Helpers Ċ import Ġkotlin . reflect . K Class Ċ Ċ fun Ġ< T Ġ: ĠAny > ĠResult . as Object ( clazz : ĠK Class < T >): ĠT Ġ{ ĊĠ Ġval Ġmapper Ġ= Ġj ack son ObjectMapper () ĊĠ Ġreturn Ġmapper . readValue ( asString (), Ġclazz . java ) Ċ } Ċ Ċ fun ĠResult . asString (): ĠString Ġ= ĠHelpers . content AsString ( this )