Subhasish Goswami
Subhasish Goswami

Reputation: 21

How to parse transaction payload in Hyperledger Fabric

I am trying to use a chaincode with minifabric. The transaction payloads are shown correct when the payload is a number but when I send string as payload the payload returned is encoded like this "\262\027\236\267W\332\226\307\254\205\347\255\331\366\245\261" . How do I get the string as payload.

Upvotes: 0

Views: 145

Answers (1)

GPC
GPC

Reputation: 381

to get actual value of string try to convert it to string by using toString() function with the response

Upvotes: 0

Related Questions