projects
/
jamaendo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New backend: api2.py
[jamaendo]
/
jamaui
/
util.py
diff --git
a/jamaui/util.py
b/jamaui/util.py
index
6bff67f
..
09904d7
100644
(file)
--- a/
jamaui/util.py
+++ b/
jamaui/util.py
@@
-1,4
+1,5
@@
import os
+import simplejson
def string_in_file( filepath, string ):
try:
@@
-19,3
+20,6
@@
def get_platform():
return 'linux'
platform = get_platform()
+
+def jsonprint(x):
+ print simplejson.dumps(x, sort_keys=True, indent=4)