Skip to content

Commit

Permalink
fixed non-valid json issue, ref fhightower#16
Browse files Browse the repository at this point in the history
  • Loading branch information
mlliarm committed Feb 3, 2023
1 parent 305c26d commit 9e16c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html_to_json/convert_html.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
"""Convert html to json."""

import bs4
import bs4, json


def _debug(debug, message, prefix=''):
Expand Down Expand Up @@ -72,8 +72,8 @@ def _iterate(
else:
if capture_element_values:
_record_element_value(part, json_output)
return json_output

return json.dumps(json_output)
#return json_output

def convert(
html_string,
Expand Down

0 comments on commit 9e16c33

Please sign in to comment.