Mageia Bugzilla – Attachment 13290 Details for
Bug 30502
python-ujson possible security issues fixed upstream in 5.3.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
ujson example
ujson.py (text/plain), 247 bytes, created by
Herman Viaene
on 2022-06-04 20:40:56 CEST
(
hide
)
Description:
ujson example
Filename:
MIME Type:
Creator:
Herman Viaene
Created:
2022-06-04 20:40:56 CEST
Size:
247 bytes
patch
obsolete
>import ujson >a = {"name":"Horseman", "age": "21", "city": "Mumbai"} >print("a type:", type(a)) >b=ujson.dumps(a) >b1=ujson.dumps(a, indent=4) >print("b variable:", type(b)) >print(b) >print(b1) >c = ujson.loads(b) >print("c variable:", type(c)) >print(c)
import ujson a = {"name":"Horseman", "age": "21", "city": "Mumbai"} print("a type:", type(a)) b=ujson.dumps(a) b1=ujson.dumps(a, indent=4) print("b variable:", type(b)) print(b) print(b1) c = ujson.loads(b) print("c variable:", type(c)) print(c)
View Attachment As Raw
Actions:
View
Attachments on
bug 30502
: 13290