Corrected jsonEncode for EvidencePiece to account for the different rep types