<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def convert(self, json, fout):
 """Convert json to markdown. Takes in a .json file as input and convert it to Markdown format, saving the generated .png images into ./images. """

        self.build_markdown_body(json)  # create the body
        self.build_header(json['name'])  # create the md header
        self.build_output(fout)