in reply to rest service - input collection
Are you perhaps looking for something like JSON or JSON::XS?
Otherwise, please give some more information - see How do I post a question effectively?