Skip to content

Pluggable JSON library? #125

@orestis

Description

@orestis

I was investigating various JSON parsers in use in our app code, and I realised lacinia-pedestal hard-codes Cheshire in two places: parsing incoming requests (query, vars) and encoding outgoing responses. Obviously I can replace those interceptors with my own version, but since the Cheshire namespaces are still required, they still need to be present in the class path.

(Lacinia core does the same with data.json for the introspection part).

Would it make sense to have a protocol that applications can implement? Or perhaps use some other load-time machinery to load a particular json library? It would be nice to have a single dependency in a codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions