ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ API SupportTransformation of a variable.

Post new topicReply to topic
Transformation of a variable. View previous topic :: View next topic
Author Message
Kazim_Baig
PostPosted: Fri Oct 21, 2016 3:34 am Post subject: Transformation of a variable. Reply with quote

Novice

Joined: 26 Apr 2016
Posts: 19
Location: Bangalore

Hi All,

I have a requirement. I have an input JSON Request as follows
{
"correlationID":"11",
"policyNumber":"11"
}

Now i need to transform it to below format
{
"CorrelationID":"11",
"PolicyNumber":"11"
}

Need to change only the first letter in the JSON element to Uppercase using Assemble transformation.
is there a way to achieve this? Which transformation method i need to make use of?

I am newbie and please help me out.

Thanks in advance.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Oct 21, 2016 4:16 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17059

Why do you want/need to do this with an Assemble transformation?

Can you use a For loop? Can you use a different JSON model? Can you change the fieldname, instead of the field value?
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportTransformation of a variable.
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.