mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
420 B
22 lines
420 B
import json
|
|
|
|
def build():
|
|
obj = {}
|
|
obj['key1'] = 'foo'
|
|
obj['key2'] = 'bar'
|
|
obj['key3'] = 'quux'
|
|
obj['key4'] = 'baz'
|
|
obj['key5'] = 'quuux'
|
|
obj['key6'] = [ 'foo', 'bar', 'quux', 'baz', 'quuux' ]
|
|
obj['key7'] = [ None, None, True, 123.456, 1e200, {}, {}, {} ]
|
|
|
|
return obj
|
|
|
|
def test():
|
|
obj = build()
|
|
i = 0
|
|
while i < 1e5:
|
|
ignore = json.dumps(obj)
|
|
i += 1
|
|
|
|
test()
|
|
|