How can I get serialized HalideIR in tvm through c++

Hello, thanks for your important fundamental projects.
I want to get the serialized HalideIR in textual format and compare to another IR.
Could you give me some ideas about that?
Thanks

I have found there are lots of node implemented in halideIR, is it possible to serialized tvm code to HalideIR with textual format?
Or how can I get the design prototype of HalideIR?
Thanks.

Yes, we can serialize the AST(HalideIR stream) into json and deserialize json into AST back.