Even though the issue is in oteapi-services, maybe the correct place to add an option for the user to provide a custom JSON encoder is in SessionUpdate in oteapi-core.
If the strategy developer makes sure that the SessionUpdate always is JSON serialisable, the session should also be serialisable. However, it might require to introduce a new Session class.
Even though the issue is in oteapi-services, maybe the correct place to add an option for the user to provide a custom JSON encoder is in SessionUpdate in oteapi-core.
If the strategy developer makes sure that the SessionUpdate always is JSON serialisable, the session should also be serialisable. However, it might require to introduce a new Session class.