wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

nested json object not supported when convert json to attr_container

Open amboowang opened this issue 4 years ago • 2 comments

when send request with a json file payload. nested object in the json file is not supported. What's the reason? is it difficult to calculate the size of the object?

amboowang avatar Oct 18 '21 09:10 amboowang

@amboowang it is not easy to implement the nested attr_container. The attr_container itself can be serialized into a byte array, can you create another attr_container for the nested object, serialize it into a byte array, and then set the byte array to the main attr_container?

wenyongh avatar Oct 19 '21 11:10 wenyongh

We may use cbor to replace attr_container in the future.

xwang98 avatar Oct 20 '21 01:10 xwang98