0

I want to convert a series of data/object/struct into a json text before saving it into my table.

Is this possible?

0

Converting to/from JSON could take a long time. Blockchain transactions need to be very fast (<30ms). Recommend not doing this.

If you want to do it, you need to provide your own JSON encoder/decoder in your contract.

1
  • Thank you! I'm a bit new to C++ and have thought the references I was seeing were JSON when in actuality, it might have been a vector of objects/classes. Others who might be looking for the answer might need this info so I'll just leave this here. Thanks again @Matthew Darwin!
    – Jesseeeee
    Jan 7 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.