Hello,

The Gorm library is a valuable ORM tool for our Go projects. However, we have a need to use an external JSON library within our system. Currently, Gorm does not support integration with an external JSON library. Therefore, we would like to add a custom feature that supports the integration of an external JSON library.

Example Scenarios:

By adding this support, we can address scenarios such as:

  1. Object Serialization with JSON: Enabling the ability to convert Go objects to JSON format and vice versa using an external JSON library.

  2. Customizable Marshalling: Allowing users to define custom JSON conversion behaviors.

  3. Helper Functions: Adding helper functions to facilitate JSON-related operations.

This feature can potentially broaden Gorm's user base and be a significant contribution to our project.

Join the Discussion: Please comment on this issue to share your thoughts and suggestions regarding this feature. If you provide more details or suggestions, you can help us better design this integration.

Thank you!

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking

Comment From: saeidee

What do you mean by integration with an external JSON library? also could you please write some use-case with examples?

Comment From: meftunca

@saeidee https://docs.gofiber.io/guide/faster-fiber/ As you can see in the link above, I want to integrate libraries that can increase JSON processing performance into Gorm in a similar way.

Comment From: github-actions[bot]

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days