Repository navigation
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! π