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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add declared type namespace to json #169

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Mythra
Copy link

@Mythra Mythra commented Jun 15, 2021

馃憢 Thanks for this tool! I've been writing some tooling to automatically dump things from GHIDRA, and currentlyt he dump takes ~4 hours because it's just dumping everything in the metadata.json. I was looking to filter out dumping any Mono/System methods, in order to do that because there may be conflicting names without namespaces I figured I'd just add the namespace to the JSON, and filter on that.

@@ -261,6 +262,10 @@ public class JSONMetadata
writer.WriteString("dotNetSignature", method.ToString().ToEscapedString());
}

private void writeDeclaredTypeNamespace(MethodBase method) {
writer.WriteString("declared_type_namespace", method.DeclaringType.Namespace);
Copy link
Contributor

Choose a reason for hiding this comment

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

Best to keep camelCase for the JSON keys for consistency: declaringTypeNamespace

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.

None yet

2 participants