Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
11ab807d
Commit
11ab807d
authored
Oct 13, 2016
by
Damien George
Browse files
tests/extmod: Add test for ujson.load().
parent
e93c1ca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/extmod/ujson_load.py
0 → 100644
View file @
11ab807d
try
:
from
uio
import
StringIO
import
ujson
as
json
except
:
from
io
import
StringIO
import
json
print
(
json
.
load
(
StringIO
(
'null'
)))
print
(
json
.
load
(
StringIO
(
'"abc
\\
u0064e"'
)))
print
(
json
.
load
(
StringIO
(
'[false, true, 1, -2]'
)))
print
(
json
.
load
(
StringIO
(
'{"a":true}'
)))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment