JSON results documentation #1207
-
Going from version 3 to version 4, the release notes say that the JSON results format was changed, and that these changed were documented. Does anyone have a link to the documentation explaining what changed between v3 and v4? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey, I don't see more detailed documentation on this either, but the major change between v3 and v4 is the change from number-only based addresses, e.g. "base_address":
{
"type": "absolute",
"value": 4194304
}, For the update we also switched to using a with open(capa_results.json, "rb") as f:
doc = json.loads(f.read().decode("utf-8"))
res = rd.ResultDocument.parse_obj(results) You can then access the result document fields like Does that help? I'm happy to provide more details for additional questions. |
Beta Was this translation helpful? Give feedback.
Hey, I don't see more detailed documentation on this either, but the major change between v3 and v4 is the change from number-only based addresses, e.g.
"base_address": 4194304,
to more expressive/flexible addresses, e.g.:For the update we also switched to using a
pydantic
model. If you're processing the results that should simplify a few things. An example to load the stored results:You can then access the result document fields like
res.meta
vs. theres["meta"]
access before.Does that help?…