Can I use Protobuf to generate code for my json based DSL?

34 views
Skip to first unread message

Shreshtha Deepak

unread,
May 13, 2020, 10:48:49 PM5/13/20
to Protocol Buffers
We have created a json based DSL for creating workflows with dynamic data and flows between basic workflow units. Is it possible to use a proto file instead of the json to generate code in this case?
DSL
Message has been deleted

Adam Cozzette

unread,
May 19, 2020, 11:58:52 AM5/19/20
to Eleanore Jin, Protocol Buffers
Protobuf supports a JSON encoding that might work for your use case.

On Wed, May 13, 2020 at 8:42 PM Eleanore Jin <eleano...@gmail.com> wrote:
Hi Shreshtha, 

Thanks for the reply! to give you more context of my use case:
we can deserialize the message from proto into json (jackson), and within the application, we require to use json to process business logics, and when the message needs to be egressed out of the application, I would like to convert the message back to proto, as the downstream services expect the message to be in proto format. 

If the json based DSL can satisfy this use case, can you please provide more details how this can be used?

Thanks a lot!
Eleanore


On Wednesday, May 13, 2020 at 7:48:49 PM UTC-7, Shreshtha Deepak wrote:
We have created a json based DSL for creating workflows with dynamic data and flows between basic workflow units. Is it possible to use a proto file instead of the json to generate code in this case?

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/402e8055-8bc5-4c34-874e-840b018a7e2f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages