mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import ubjson
|
||||
|
||||
data = {
|
||||
"name": "python-ubjson",
|
||||
"versions": ["1", "2"],
|
||||
"group": {
|
||||
"is_a_package": True,
|
||||
"value": 42
|
||||
}
|
||||
}
|
||||
serialized = ubjson.dumpb(data)
|
||||
print(serialized)
|
||||
with open("/tmp/data.json", "wb") as f:
|
||||
f.write(serialized)
|
||||
Reference in New Issue
Block a user