We have proper abstraction and clear separation of responsibility with using JRegistry. If you use json_encode, it's not even possible to spot that it's a registry. The CPU overhead is small, and i see no reason to not use JRegistry. That way it's forward compatible too.