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 Index » WebSphere Message Broker (ACE) Support » XML to JSON not preserving data type

Post new topic  Reply to topic
 XML to JSON not preserving data type « View previous topic :: View next topic » 
Author Message
ajayrana
PostPosted: Sun Aug 10, 2014 10:33 pm    Post subject: XML to JSON not preserving data type Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Hi,

I am trying to convert an XMLNSC to a JSON but in case of an elemnt which is string with value "123", it gets converted into integer(without double quites) in JSON.

I am using a JCN with DOM and java-json JAR
(http://www.java2s.com/Code/Jar/j/Downloadjavajsonjar.htm) .

Is there any way i can convert it while preserving datatypes.

Thanks & Regards
Ajay Rana
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 11, 2014 2:34 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Is there a reason why you are not using the JSON domain?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to JSON not preserving data type
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.