construct

How to make json.dumps in Python ignore a non-serializable field

How to make json.dumps in Python ignore a non-serializable field Question: I am trying to serialize the output of parsing some binary data with the Construct2.9 library. I want to serialize the result to JSON. packet is an instance of a Construct class Container. Apparently it contains a hidden _io of type BytesIO – see …

Total answers: 3