Move is_object -> null out of jsonEncode