Skip to content

Use json.RawMessage to represent JSON type struct fields instead of []byte #2965

@Goldziher

Description

@Goldziher

What do you want to change?

Hi there,

I'd like to ask for an update to how structs are generated. Instead of using []byte to represent a JSON type field, use json.RawMessage. This affects serialization and deserialization primarily. It could of course just be optional.

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageNew issues that hasn't been reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions