Skip to content
Snippets Groups Projects
Commit 4780e200 authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

2012-10-23_19_10_01_02_00 :: 1 :: M => 1

parent 8856942c
No related branches found
No related tags found
No related merge requests found
......@@ -465,7 +465,7 @@ def utility_processor():
json = jsonpickle.encode(data)
json.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;');
rep = '("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|(?:\b|\s)(true|false|null)|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)'
rep = '("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|(?:\b|\s)(true|false|null)(?:\b|\s|,)|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)'
repc = re.compile(rep)
jsonRes = repc.sub(json2html, json)
#print json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment