Repository navigation
Releases: Your-RoGr/jsonUtils
Releases · Your-RoGr/jsonUtils
Release list
v1.0.0🚀
jsonUtils v1.0.0 🎉
Release Description
We're excited to present the first stable release of jsonUtils v1.0.0! 🚀 This package provides convenient utilities for working with JSON in Go, including two main components: FindAndParseJSON and numberedJSON.
Key Features
FindAndParseJSON 🔍
The FindAndParseJSON function extracts and parses JSON objects from a given text string:
- Uses regular expressions to find JSON-like structures in the text 📝
- Attempts to parse each found structure as JSON 🧩
- Returns a slice of successfully parsed JSON objects as maps 📊
- Skips invalid JSON structures ⏭️
- Returns an error if no valid JSON is found ❌
numberedJSON 🔢
The numberedJSON struct and its associated methods provide a way to create numbered JSON objects from a slice of strings:
GetString(): Converts the numbered JSON to a JSON string 🔄GetMap(): Converts the numbered JSON to a nested map structure 🗺️CreateNumberedJSON(): Creates a newnumberedJSONinstance ✨
Installation
To install the package, use the command:
go get github.com/Your-RoGr/jsonUtilsDocumentation
Full documentation is available in the README.md and README.ru.md files of the repository. 📖
Next Steps
We will continue to work on improving and expanding the functionality of jsonUtils. Your feedback and suggestions are always welcome! 🌟