Skip to content

v1.0.0πŸš€

Latest

Choose a tag to compare

@Your-RoGr Your-RoGr released this 25 Mar 11:02
· 7 commits to master since this release

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 new numberedJSON instance ✨

Installation

To install the package, use the command:

go get github.com/Your-RoGr/jsonUtils

Documentation

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! 🌟