Commit graph

5 commits

Author SHA1 Message Date
05d806adff
Add JSON marshaling support for Variable types
Introduced a NewVariable function for creating generics-based Variable types. Added MarshalJSON methods to support JSON encoding for various Nil types, ensuring proper handling of nil values. Updated tests and examples to verify the new marshaling functionality.
2024-09-02 12:13:54 +02:00
bdd7efec82
Refactor data processing and message formatting
Updated the JSON data structure for better readability and added more comprehensive output formatting in the main function. Utilized a single 'output' string to accumulate messages, improving code readability and efficiency.
2024-09-01 17:05:11 +02:00
34fae8a109
Fix indentation issue in README.md
Corrected the indentation of the Float32 field in the JSONType struct. This change improves code readability and maintains consistent formatting throughout the documentation.
2024-09-01 16:49:08 +02:00
d558f5dffb
Add detailed README documentation with examples.
Expand the README to include license information, badges, and detailed documentation. Also provide example usage of the `niljson` package to help users understand how to integrate and use nullable JSON fields in their Go applications.
2024-09-01 16:46:02 +02:00
f3a9441638
Initial commit 2024-09-01 15:53:52 +02:00