When using the fabric-cli to query for blocks I encountered an error whereby the chaincode arguments for a block were not returned in correct JSON format. This occurred as they were not correctly separated by commas within the JSON block.
The changes add a comma to items within an array unless they are the last or only item in the array.
Previously a JSON block called may have had a field like this:
When using the fabric-cli to query for blocks I encountered an error whereby the chaincode arguments for a block were not returned in correct JSON format. This occurred as they were not correctly separated by commas within the JSON block.
The changes add a comma to items within an array unless they are the last or only item in the array.
Previously a JSON block called may have had a field like this:
This is correct to the following:
HTH