Fixed json output rendering for arrays