def dump(self, file, payload):
        """Dump json oject to open file output.

        Writes json with 2 spaces indentation.

        Args:
            file: Open file-like object. Must be open for writing.
            payload: The Json object to write to file.

        Returns:
            None.

        """
        json.dump(payload, file, indent=2, ensure_ascii=False)