Fix of binary to return correct json results