This was a fix to an old, existing bug... Wrong arguments being passed to `toJson()`.