Skip to content
Discussion options

You must be logged in to vote

I think the confusion is probably that ShapeData.str() is not an ASCII string. It's a binary stream of bytes that could start with a 0-byte. If you treat it as text and output it to JSON you would end up with an empty string. Check ShapeData.str().size(), I think it will be bigger than 0.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by WholesomeIsland
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants