Skip to content

Feature Request: JSON support for workerd serve #842

@isaksky

Description

@isaksky

There are currently two ways to provide a configuration to workerd serve:

  • A capnproto text file (e.g., workerd serve my-config.capnp)
  • Binary encoded capnproto (with the --binary flag)

For driving workerd with another program in ecosystems with poor capnproto support, it would be nice to be able to provide configuration via JSON.

Looks like the ability to translate back and forth from JSON is available in capnproto here:

https://github.com/capnproto/capnproto/blob/master/c++/src/capnp/compat/json.h

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequest for Workers team to add a feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions