def body_json(soup, base_url=None):
body_content = body(soup, remove_key_info_box=True, base_url=base_url)<EOL>if (body_content and len(body_content) > <NUM_LIT:0> and "<STR_LIT:type>" in body_content[<NUM_LIT:0>]<EOL>and body_content[<NUM_LIT:0>]["<STR_LIT:type>"] != "<STR_LIT>"):<EOL><INDENT>new_body_section = OrderedDict()<EOL>new_body_section["<STR_LIT:type>"] = "<STR_LIT>"<EOL>new_body_section["<STR_LIT:id>"] = "<STR_LIT>"<EOL>new_body_section["<STR_LIT:title>"] = "<STR_LIT>"<EOL>new_body_section["<STR_LIT:content>"] = []<EOL>for body_block in body_content:<EOL><INDENT>new_body_section["<STR_LIT:content>"].append(body_block)<EOL><DEDENT>new_body = []<EOL>new_body.append(new_body_section)<EOL>body_content = new_body<EOL><DEDENT>body_content_rewritten = elifetools.json_rewrite.rewrite_json("<STR_LIT>", soup, body_content)<EOL>return body_content_rewritten<EOL>
Get body json and then alter it with section wrapping and removing boxed-text