Create a JSON serializer can fully serialize AST nodes content including cross references? #1553
jindong-zhannng
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Hey @jindong-zhannng, you can take some inspiration from the old json serializer. It is less powerful (cannot resolve cross references to other files), but has far fewer dependencies. Stuff like the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I'm facing a requirement that needs to transfer parsed AST to another process via a textual way. To achieve it, I think I need a JSON serializer that:
There is one
DefaultJsonSerializer
in langium. But it depends on language services and documents in memory to handle cross-references.So do we need such a new json serializer to be added to langium if my need is not too rare? And any ideas about implementation?
My rough idea: serialize node to...
Beta Was this translation helpful? Give feedback.
All reactions