Skip to content

Conversation

@koinsaari
Copy link
Contributor

  • Adds decode() and decodeToJson() methods to JToon API
  • Implements ValueDecoder with full TOON parser
  • Adds DecodeOptions record with strict mode validation
  • Extends StringEscaper with unescape methods
  • Adds comprehensive tests with round-trip verification
  • Updates README and CHANGELOG

@felipestanzani
Copy link
Collaborator

@koinsaari, we are restricted to using Java 17 features. Please take a look at the use of some features, such as "getFirst()", that are not in Java 17.

@felipestanzani felipestanzani mentioned this pull request Nov 7, 2025
- Adds decode() and decodeToJson() methods to JToon API
- Implements ValueDecoder with full TOON parser
- Adds DecodeOptions record with strict mode validation
- Extends StringEscaper with unescape methods
- Adds comprehensive tests with round-trip verification
- Updates README and CHANGELOG
Copy link
Collaborator

@felipestanzani felipestanzani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review this small change.

*/
public final class JToon {

private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this implementation to another class and keep this class as anemic as possible.

* invalid
*/
public static String decodeToJson(String toon, DecodeOptions options) {
try {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this implementation to another class and keep this class as anemic as possible.

@felipestanzani felipestanzani linked an issue Nov 9, 2025 that may be closed by this pull request
@felipestanzani felipestanzani merged commit 981cded into toon-format:main Nov 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decode function

2 participants