https://github.com/chrimle/record2json

Parse and convert stringified Java records into JSON.

https://github.com/chrimle/record2json

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.6%) to scientific vocabulary

Keywords

java java-records json strings
Last synced: 5 months ago · JSON representation

Repository

Parse and convert stringified Java records into JSON.

Basic Info
  • Host: GitHub
  • Owner: Chrimle
  • License: apache-2.0
  • Default Branch: main
  • Homepage:
  • Size: 8.79 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
java java-records json strings
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Funding License Codeowners

README.md

Record2JSON

Parse and convert stringified Java records into JSON.

Background

With the introduction of Java records in Java 16, the default toString() implementation provides a more human-readable string representation of objects.This improved format, e.g. ExampleRecord(field1=value1, field2=value2), is useful for debugging and logging. However, this string representation should not be mistaken for serialization, as it is not intended for data exchange or persistence.

Purpose

There may be scenarios where a record has been stringified, e.g. in logs, and needs to be recovered and serialized into a JSON for further processing. Record2JSON parses the string and converts it into a valid JSON string.

Features

(Draft Roadmap) 1. Validate Input String - Ensure that the input string is a valid stringified record. 2. Validate Record Structure - Support providing a JSON Schema for the expected structure. - Support providing field names and Class<?> arguments for the expected structure. 3. Further Configurations - Support additional customizations. - Prettify, for example 4. Return a Valid JSON String - Convert the parsed object into a JSON string.

Owner

  • Name: Christopher Molin
  • Login: Chrimle
  • Kind: user
  • Location: Gothenburg
  • Company: Chrimle.com

Software Engineer

GitHub Events

Total
  • Watch event: 1
  • Delete event: 3
  • Push event: 3
  • Pull request event: 6
  • Create event: 5
Last Year
  • Watch event: 1
  • Delete event: 3
  • Push event: 3
  • Pull request event: 6
  • Create event: 5

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 minutes
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • Chrimle (5)
Top Labels
Issue Labels
Pull Request Labels
meta (5)