Skip to content

Traits for Qt JSON #367

Open
Open
@dantti

Description

@dantti

What's your question?

Help with adding traits for Qt JSON types

Additional Context

I've been using JWT-CPP for a long time, prior traits, and using picojson isn't much of a pain, still since I'm alwayd on Qt related code being able to use Qt types simplifies the code, I feel like I managed to get a bit far, tho code does not compile.
It seems my main issues are:

  • QString support, which the current traits always have a comment saying that there is not support for anything different than std::string
  • object_type [] operator, this seems tricky as QJsonValueRef is returned to be able to have a value assigned for QJsonObject and QJsonArray, still the latter doesn't seem to require such operator

My current attempt is at cutelyst/FirebaseAdminQt#2 hopefully you can also see the build issues, would be great if this was possible, and upstreamed here.

Can I get some help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions