def json_encode(value):
    # JSON permits but does not require forward slashes to be escaped.
    # This is useful when json data is emitted in a <script> tag
    # in HTML, as it prevents </script> tags from prematurely terminating
    # the javscript.  Some json libraries do this escaping by default,
    # although python's standard library does not, so we do it here.
    # http://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-escaped
    return json.dumps(value).replace("</", "<\\/")
parse the name formatting template into a partdict to be used for the actual formatting
dataset/ETHPy150Open limodou/uliweb/uliweb/core/template.py/json_encode--crossover with--dataset/ETHPy150Open dschwilk/bibstuff/bibstuff/bibstyles/shared.py/NameFormatter.template2dict