and that will only result in one of the json strings being encoded/decoded correctly.
However, the json instance needs to be able to handle both discriminators.
Is there any way to accomplish this? Maybe per top hierarchy class annotation or dynamically ?