Try making from_json through error, move serialize/deserialize into xmodule.