Revert "Fixed error caused by the "sub" variable being serialized as an array instead of an object."

This reverts commit 57c9e5a37f03d35ee812ac70cb596dc720042b79.