eric7.EricNetwork.EricJsonStreamWriter
Module implementing a JSON based writer class.
Global Attributes
Classes
Functions
EricJsonWriter
Class implementing a JSON based writer class.
Derived from
None
Class Attributes
Class Methods
Methods
Static Methods
EricJsonWriter (Constructor)
EricJsonWriter(host, port)
Constructor
- host (str)
-
IP address the reader is listening on
- port (int)
-
port the reader is listening on
EricJsonWriter.close
close()
Public method to close the stream.
EricJsonWriter.write
write(data)
Public method to send JSON serializable data.
- data (object)
-
JSON serializable object to be sent