My SOR application is returning result set, I\'m performing below binary-encode and decode to retrieve json