Inject custom serializer in Play api json 2.5

Hi is there a way to inject play component class to Json.writes

Hi @ramachandran88 .

As far as i know the default writes in play are in an Object (Scala). You cannot inject more writes to it but you can ode you own implcit writes and import into the scope that you want.

Hi Actually i want to access play injected class to encrypt a url before sending as a response

You cannot change a default writes behavior. You can write you own writer or encrypt url before pass it to the writer =)