based on @gberaudo initial PR, but I must admit I'm not going to make a PR on a fork for this.
So, the problem was with our implementation (and gberaudo was right in its change). The problem is that in our unit tests, we were serializing json twice, and then get_json() returned a string (since a string is a valid json), and so it worked in the end. I left the initial implementation as is, and corrected the double serialization in tests.
Thanks @ltshb for the help in debugging this (and stopping me from getting too far down the rabbit hole once again).
based on @gberaudo initial PR, but I must admit I'm not going to make a PR on a fork for this.
So, the problem was with our implementation (and gberaudo was right in its change). The problem is that in our unit tests, we were serializing json twice, and then get_json() returned a string (since a string is a valid json), and so it worked in the end. I left the initial implementation as is, and corrected the double serialization in tests.
Thanks @ltshb for the help in debugging this (and stopping me from getting too far down the rabbit hole once again).