revised json serializer in DDI plugin