Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed jsonFormatter.ItemValue #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

readhelper
Copy link

Fixed jsonFormatter.ItemValue

@maxrobot
Copy link

much better than my solution, well done

@maxrobot
Copy link

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:

"Input":{"Args":["bW92ZQ""QQ""Qg""MQ"]

This is correct to the following:

"Input":{"Args":["bW92ZQ","QQ","Qg","MQ"]

HTH some description to @readhelper 's fix

@bstasyszyn
Copy link
Contributor

Sorry for the delay, but I've included your code in the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants