Add decode and encode a request with json formate