Re: [xstream-user] Re: Serializing Java Map/Collection into JSON

2013-04-27 Thread Venkatesh
Hit the "Send" button a bit too soon. I also wanted to say that I am using the HierarchicalStreamDriver. On Sat, Apr 27, 2013 at 4:58 PM, Venkatesh wrote: > Jorge: > > Thanks for responding to me. I didn't do anything specific; only set > Xstream's mode to use NO_REFERENCES. > > Venkatesh > > >

Re: [xstream-user] Re: Serializing Java Map/Collection into JSON

2013-04-27 Thread Venkatesh
Jorge: Thanks for responding to me. I didn't do anything specific; only set Xstream's mode to use NO_REFERENCES. Venkatesh On Sat, Apr 27, 2013 at 4:43 PM, Jörg Schaible wrote: > Hi, > > Venkatesh wrote: > > > A little more context: > > > > I wrote a custom MapConverter. Below is the impleme

[xstream-user] Re: Serializing Java Map/Collection into JSON

2013-04-27 Thread Jörg Schaible
Hi, Venkatesh wrote: > A little more context: > > I wrote a custom MapConverter. Below is the implementation: > > public MyCustomMapConverter extends MapConverter { > > . > @Override > public void marshal(Object source, HierarchicalStreamWriter writer, > Marshallin

[xstream-user] Re: Serializing Java Map/Collection into JSON

2013-04-27 Thread Venkatesh
A little more context: I wrote a custom MapConverter. Below is the implementation: public MyCustomMapConverter extends MapConverter { . @Override public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) { Map map = (Map)

[xstream-user] Re: Serializing Java Map/Collection into JSON

2013-04-27 Thread Venkatesh
My problem is close to the issue reported here: http://xstream.10960.n7.nabble.com/Can-XSTREAM-s-Jettison-JSON-writer-convert-HashMap-to-Javascript-hashtable-td5543.html but I am not sure I understand what "writing the key as a tag" means. Sorry for the newbie question. On Sat, Apr 27, 2013 at

[xstream-user] Serializing Java Map/Collection into JSON

2013-04-27 Thread Venkatesh
Hi ! I have been using XStream to convert from Java objects to JSON and vice versa. I had a question and was hoping someone in this list can provide some help/guidance. I have a Java object that has a HashMap as a member: public class MyObject { private HashMap myMap = new ConcurrentHashMap(

[xstream-user] Re: Equivalence of TraxSource but based on xml file

2013-04-27 Thread Jörg Schaible
Hi Benoit, Benoit Idieder wrote: > Hi, > > I am using xstream to serialize KeyStroke objects among other things, > which give that kind of xml file : > > > > 116 > 0 > false > > > But now I am facing an issue as I want to run an XSL transformation on my > persisted xml files

[xstream-user] Equivalence of TraxSource but based on xml file

2013-04-27 Thread Benoit Idieder
Hi, I am using xstream to serialize KeyStroke objects among other things, which give that kind of xml file : 116 0 false But now I am facing an issue as I want to run an XSL transformation on my persisted xml files ; I get this when performing the transformation : Character re