Skip to content

Conversation

@HamdiSaidaniX
Copy link

Added new XML to JSON converter utility with full SEO content and related tool links.

@peckz
Copy link
Collaborator

peckz commented Dec 29, 2025

@HamdiSaidaniX Thank you!
I suggest extracting those functions into a helper file and adding a couple of tests to make sure everything is running smoothly!

You can find an example in json-to-csv.utils.ts and json-to-csv.test.ts

@HamdiSaidaniX
Copy link
Author

@peckz Thank you for the feedback! I've made the following updates:

✅ Extracted xmlToJson function into a separate helper file (lib/xmlToJson.ts)
✅ Added comprehensive unit tests covering basic conversion, attributes, arrays, text content, and error handling

Let me know if there's anything else you'd like me to adjust!

2 similar comments
@HamdiSaidaniX

This comment was marked as duplicate.

@HamdiSaidaniX

This comment was marked as duplicate.

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.

2 participants