Mahdy Nabaee

14 papers B 1Misc 1Journal 9Unranked 3
YearRankTypeTitle / Venue / Authors
2015 J jnl
CoRR
Pascal Potvin, Mahdy Nabaee, Fabrice Labeau, Kim Khoa Nguyen, Mohamed Cheriet
2014 conf
WTS
Mahdy Nabaee, Fabrice Labeau
2014 J jnl
EURASIP J. Wirel. Commun. Netw.
Mahdy Nabaee, Fabrice Labeau
2013 J jnl
CoRR
Mahdy Nabaee, Fabrice Labeau
2012 J jnl
CoRR
Mahdy Nabaee, Fabrice Labeau
2012 J jnl
CoRR
Mahdy Nabaee, Fabrice Labeau
2012 J jnl
CoRR
Mahdy Nabaee, Fabrice Labeau
2012 J jnl
CoRR
Mahdy Nabaee, Fabrice Labeau
2012 conf
SSP
Mahdy Nabaee, Fabrice Labeau
2012 J jnl
CoRR
Mahdy Nabaee, Fabrice Labeau
2012 B conf
GLOBECOM
Mahdy Nabaee, Fabrice Labeau
2012 J jnl
CoRR
Ali P. Fard, Mahdy Nabaee
2008 Misc conf
CSICC
Hossein Hajimirsadeghi, Mahdy Nabaee, Babak Nadjar Araabi
2008 conf
ICT
Mahdy Nabaee, Ali Olfat
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)