James Eaton

13 papers Misc 3Journal 6Unranked 4
YearRankTypeTitle / Venue / Authors
2017 conf
HSCMA
James Eaton, Hamza A. Javed, Patrick A. Naylor
2016 J jnl
CoRR
James Eaton, Nikolay D. Gaubitch, Alastair H. Moore, Patrick A. Naylor
2016 J jnl
IEEE ACM Trans. Audio Speech Lang. Process.
James Eaton, Nikolay D. Gaubitch, Alastair H. Moore, Patrick A. Naylor
2016 J jnl
Adv. Eng. Informatics
Saiful Khan, Urszula Kanturska, Tom Waters, James Eaton, René Bañares-Alcántara, Min Chen
2015 J jnl
CoRR
James Eaton, Patrick A. Naylor
2015 Misc conf
ICASSP
James Eaton, Alastair H. Moore, Patrick A. Naylor, Jan Skoglund
2015 J jnl
CoRR
James Eaton, Nikolay D. Gaubitch, Alastair H. Moore, Patrick A. Naylor
2015 J jnl
CoRR
James Eaton, Patrick A. Naylor
2015 conf
WASPAA
James Eaton, Nikolay D. Gaubitch, Alastair H. Moore, Patrick A. Naylor
2014 Misc conf
ICASSP
James Eaton, Patrick A. Naylor
2013 conf
EUSIPCO
James Eaton, Mike Brookes, Patrick A. Naylor
2013 conf
EUSIPCO
James Eaton, Patrick A. Naylor
2013 Misc conf
ICASSP
James Eaton, Nikolay D. Gaubitch, Patrick A. Naylor
redb/extractors/decompiler/bninja/utils/json_encoder.py
← Index redb/extractors/decompiler/bninja/utils/json_encoder.py python
import json


class BinaryNinjaEncoder(json.JSONEncoder):
    """Custom JSON encoder for BinaryNinja types"""

    def default(self, obj):
        # Handle Binary Ninja specific types

        # for values, we try to obtain the json for the value property
        if hasattr(obj, "value") and hasattr(obj, "confidence"):
            return obj.value

        # for strings, we simply compute the native string
        if hasattr(obj, "__str__"):
            return str(obj)

        # for all the others values we use the normal json encoder
        return json.JSONEncoder.default(self, obj)