Working with jsonpickle

25 views
Skip to first unread message

Joeffrey Chan

unread,
Sep 8, 2021, 3:31:17 PM9/8/21
to robotframework-users
Hi,

I'm trying the robot.api to work with jsonpickle.

import jsonpickle
from robot.api import get_model

model = get_model('my_test_suite.robot')

serialized = jsonpickle.encode(model)
print(serialized)

obj = jsonpickle.decode(serialized)
print(obj)

The error: "TypeError: __init__() missing 1 required positional argument: 'tokens'" is encountered on the jsonpickle.decode line.

Can someone please help me or point me to the right direction on how to make it work?

robotframework==4.1
jsonpickle=2.0.0

Thank you very much!
Reply all
Reply to author
Forward
0 new messages