Re: JSONParser.parseStrict() with \

2013-03-25 Thread rkulisas
, rkulisas wrote: Before calling parseStrict(): {name:item_name,index:0,*text:Kindle Fire HD 8.9\...*} So the text property of the object is the string « Kindle Fire HD 8.9... » After parseStrict(): {name:item_name, index:0, *text:Kindle Fire HD 8.9 ...*} JsonUtils gives you an object

Re: JSONParser.parseStrict() with \

2013-03-25 Thread rkulisas
:19 AM UTC-7, Thomas Broyer wrote: On Monday, March 25, 2013 11:23:51 AM UTC+1, rkulisas wrote: //josn is {name:item_name,index:0,*text:Kindle Fire HD 8.9\... *} JSONValue value = JSONParser.parseStrict(json); JSONObject obj; JSONString name, text; JSONNumber nxd; if ((obj

Re: JSONParser.parseStrict() with \

2013-03-25 Thread rkulisas
{ + \name\: + ((name == null)? null : (\ + name + \)) + , \index\: + index + , \text\: + ((text == null)? null : (\ + text + \)) + }; } On Monday, March 25, 2013 1:23:43 PM UTC-7, rkulisas wrote: Hi Thomas, I don't have control over the string value that gets passed

JSONParser.parseStrict() with \

2013-03-24 Thread rkulisas
Hi, I have JSON string that contains \. When I pass this to either parseStrict() or parseLenient(), I get back string with instead of \. I tested this with JS eval() as well. eval() returns string with \. Anyone know how to work around this? Thank you. -- You received this message because

Re: JSONParser.parseStrict() with \

2013-03-24 Thread rkulisas
, March 24, 2013 9:14:18 AM UTC+1, rkulisas wrote: Hi, I have JSON string that contains \. When I pass this to either parseStrict() or parseLenient(), I get back string with instead of \. I tested this with JS eval() as well. eval() returns string with \. Anyone know how to work around

AutoBean with Subclasses

2012-08-02 Thread rkulisas
Hi, I have 4 interfaces: public interface Ainterface{ getName()/setName(); getShape()/setShape(); } public interface Binterface extends Ainterface{ getWidth()/setWidth(); getHeight()/setHeight(); ... } public interface Cinterface extends Ainterface{ getRadius()/setRadius();