Commit 32776f24 authored by Ad Schellevis's avatar Ad Schellevis

(ids) replace standard json library with ultrajson

parent 36fe85ad
......@@ -33,7 +33,7 @@
total_rows: total rowcount for this selection
parameters: list of parameters used
"""
import json
import ujson
import sys
from rulecache import RuleCache
......@@ -59,4 +59,6 @@ if __name__ == '__main__':
# dump output
result=rc.search(**parameters)
result['parameters'] = parameters
print (json.dumps(result))
print (ujson.dumps(result))
......@@ -30,7 +30,7 @@
--------------------------------------------------------------------------------------
script to fetch all classtypes from the installed suricata rules using the shared rule cache:
"""
import json
import ujson
from rulecache import RuleCache
if __name__ == '__main__':
......@@ -41,4 +41,5 @@ if __name__ == '__main__':
items=rc.listClassTypes()
result = {'items': items, 'count':len(items)}
print (json.dumps(result))
print (ujson.dumps(result))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment