Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use separate-json-attributes #51

Closed
forensicmatt opened this issue Dec 28, 2021 · 3 comments · Fixed by #54
Closed

Use separate-json-attributes #51

forensicmatt opened this issue Dec 28, 2021 · 3 comments · Fixed by #54
Assignees
Labels
bug Something isn't working

Comments

@forensicmatt
Copy link

Curious why not use separate-json-attributes for the EvtxParserSettings?

The issue with not using this settings is that it causes inconsistent json attribute naming standard:
image

When ever a XML element as an attribute, the JSON field will split into a #text and #attributes. This causes issues on many fronts. Using separate-json-attributes setting for the parser will normalize the fields and an XML element's value will always be the field name and any element attributes will be placed under <ELEMENT_NAME>_attributes. This prevents inconsistent field names in JSON serializations.

Some other references:

If you are open to this I can create a PR

@fscc-jamesd fscc-jamesd self-assigned this Jan 7, 2022
@fscc-jamesd fscc-jamesd added the bug Something isn't working label Jan 7, 2022
@fscc-jamesd
Copy link
Contributor

Hi @forensicmatt

Thanks for raising this issue. I have created PR #54 which should implement what you're discussing here. Do you want to take a look and make sure I've implemented it as you were thinking?

I'll merge into master once it's been reviewed.

@forensicmatt
Copy link
Author

Looks good. Now you wont have to guess when its going to be Attribute or Attribute.#text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants