Activity for Flexjson

  • guo yifan guo yifan created ticket #51

    Stack overflow error caused by flexjson serialization List

  • guo yifan guo yifan created ticket #50

    Stack overflow error caused by flexjson serialization Map

  • guo yifan guo yifan created ticket #49

    Stack overflow error caused by flexjson parsing (2)

  • guo yifan guo yifan created ticket #48

    Stack overflow error caused by flexjson parsing

  • Charlie Hubbard Charlie Hubbard committed [r230]

    Bump back to 4.0.0 since it's not released. Add getWriteMethod(Class) so it's simpler to fetch things based on a known class without needing an instance. Also added a getDefaultWriteMethod() which uses the propertyType of the bean to find the write method. This is only for limited situations. Cleaned up some warnings.

  • Charlie Hubbard Charlie Hubbard committed [r229]

    Added defaultType to JSONTypeHierarchy

  • Charlie Hubbard Charlie Hubbard committed [r228]

    Add ability to have multiple write methods resolved by the value of the type being passed in. So a method can have a setProperty( List<> ) and a setProperty( Map<> ) and it can resolve which one to use based on the value of the JSON types.

  • Baback Nemazie Baback Nemazie modified a comment on discussion Open Discussion

    I have a class like this class MyClass { protected String Name; protected HasMap<string, object=""> responseAttributes; }</string,> I assume this class is serialized without type information. now i want to deseualize it using paths. I m not clear how to do that with the library as is. i made a hack to make it work, but it is a hack, wanted your feedback i hacked the class ObjectBinder as follows: public Object bindIntoMap(Map input, Map<object, object=""> result, Type keyType, Type valueType) { jsonStack.add(...

  • Baback Nemazie Baback Nemazie posted a comment on discussion Open Discussion

    I have a class like this class MyClass { protected String Name; protected HasMap<string, object=""> responseAttributes; }</string,> assume this class is serialized without type information. now i want to deseualize it sing paths. i am not clear how to do that. i made a hack to work it out, but it is a hack i hacked class ObjectBinder as follows: public Object bindIntoMap(Map input, Map<object, object=""> result, Type keyType, Type valueType) { jsonStack.add( input ); objectStack.add( result ); for(...

  • bill sembiante bill sembiante posted a comment on discussion Help

    Logged in to check the same thing. We are serializing objects that can contain many nulls, and the size of the file is quite large. It would be very helpfull to remove the nulls as an option. Otherwise, at this point, we have no choice but use a Jackson custom serializer and check each field (e.g. if (foo != null) { jgen.writeStringField("foo", i.getfoo()). Not an ideal solution when our objects have dozens of private variables.

  • Charlie Hubbard Charlie Hubbard committed [r227]

    Fix TypeVariable where the TypeVariable is in a base class and the subclass

  • Charlie Hubbard Charlie Hubbard committed [r226]

    Attempt to rectify placing JSONTypeHierarchy on the base type / base class instead of the collectino usage point. Also this placing JSONTypeHierarchy on an interface which caused problems with ObjectFactory discovery.

  • Charlie Hubbard Charlie Hubbard committed [r225]

    Removed bad import causing a warning.

  • Charlie Hubbard Charlie Hubbard committed [r224]

    Fixed a defect where if you encounter Number it didn't know how to deserialize it because we didn't have NumberObjectFactory, but also because useMostSpecific wasn't written correctly for the latest changes in 4.0.0 where we stopped looking in the JSON object to find typing information.

  • Charlie Hubbard Charlie Hubbard committed [r223]

    [maven-release-plugin] prepare for next development iteration

  • Charlie Hubbard Charlie Hubbard committed [r222]

    [maven-release-plugin] copy for tag flexjson-4.0.0

  • Charlie Hubbard Charlie Hubbard committed [r221]

    [maven-release-plugin] prepare release flexjson-4.0.0

  • Charlie Hubbard Charlie Hubbard committed [r220]

    Added support for parsing JSONTypeHierarchy annotation when it's on the root element, and when it's on JSONType annotation type. Added unit tests to support covering the use cases.

  • Ken Huffman Ken Huffman posted a comment on discussion Help

    I had several classes that had this problem, so I ended up created an abstract transformer class public abstract class AbstractJSONTransformer extends AbstractTransformer { @Override public void transform(Object obj) { JSONContext context = getContext(); ChainedSet visits = context.getVisits(); try { if (!visits.contains(obj)) { context.setVisits(new ChainedSet(visits)); context.getVisits().add(obj); TypeContext typeContext = context.writeOpenObject(); transformFields(obj, context, typeContext);...

  • Daniel B. Daniel B. modified a comment on discussion Help

    Dear Ken, I'm having the same problem with my auto generated java bean class. I wrote a boolean transformer like: public class BooleanPrimitiveTransformer extends AbstractTransformer { public BooleanPrimitiveTransformer() {} public void transform(Object object) { this.getContext().write((Boolean)object ? "true" : "false"); } } But this should work but flexjson cannot recognize on serialiasion if the type is an primitive boolean. public static JSONSerializer createJSONSerializerIncluding(String......

  • Daniel B. Daniel B. posted a comment on discussion Help

    Dear Ken, I'm having the same problem with my auto generated java bean class. I wrote a boolean transformer like: public class BooleanPrimitiveTransformer extends AbstractTransformer { public BooleanPrimitiveTransformer() {} public void transform(Object object) { this.getContext().write((Boolean)object ? "true" : "false"); } } But this should work but flexjson cannot recognize on serialiasion if the type is an primitive boolean. public static JSONSerializer createJSONSerializerIncluding(String......

  • Charlie Hubbard Charlie Hubbard committed [r219]

    Make sure we can handle parameterized types from the target better. If we have a type variable on an object then we need to look at the actual parameters from the targetClass because the concrete types will be specified over there.

  • Charlie Hubbard Charlie Hubbard committed [r218]

    Make sure the add method returns something that supports generic typing.

  • Charlie Hubbard Charlie Hubbard committed [r217]

    Fixed a test that has a poor solution that isn't general solution. Difficult mapping problem.

  • Charlie Hubbard Charlie Hubbard committed [r216]

    javadoc clean up.

  • Charlie Hubbard Charlie Hubbard committed [r215]

    Make sure we can override the values path with the use() method for maps and collections.

  • Charlie Hubbard Charlie Hubbard committed [r214]

    Big changes to remove using class property to deserialize the object. Added the ability to specify type hirarchy through annotations instead of using the use() method.

  • Charlie Hubbard Charlie Hubbard committed [r213]

    Updated version to 4.0.0

  • Charlie Hubbard Charlie Hubbard committed [r212]

    Added typing generic of Date to the Transformer.

  • Charlie Hubbard Charlie Hubbard committed [r211]

    Aded generic type product for the ObjectFactory. Not all factories yeild a single type of product (ie class), but this allows you to define it if possible.

  • Charlie Hubbard Charlie Hubbard committed [r210]

    Refactor so subclasses can overload how things get instantiated in the case where a subclass might want instantiate constructors with multiple arguments or call class factory methods, etc.

  • Guy Oshiro Guy Oshiro posted a comment on discussion Help

    We discovered a bug in flexjson 3.2. It appears that it is forcibly perorming unicode encoding. String saved in DB: blah blah <> and <> \"href and othe Json output from flexjson 2.1-3.1 {"stringValue": "blah blah <> and <> \"href and other"} JSON output from flexjson 3.2 {"stringValue": "blah blah \u003c\u003e and \u003c\u003e \u0022href and other"} Is there an additional config / transformer that we need to set to avoid the unicode encoding in flexjson 3.2? i.e. < converted to \u003c We will roll...

  • Literate Aspects Literate Aspects posted a comment on discussion Open Discussion

    Hello, can your FlexJson help me accomplish: jsf managed bean accessing MySQL remote...

  • Vaibhaw Pandey Vaibhaw Pandey posted a comment on discussion Help

    (Not sure if this is a known bug or limitation) When an object is being serliazed,...

  • Ivan Olmos Ivan Olmos posted a comment on discussion Help

    When you create the following class public class Test { private String item; private...

  • Floyd Shackelford Floyd Shackelford posted a comment on discussion Help

    i think this is a bug in flexjson. here's an easy reproduction. here's my set up:...

  • Anonymous modified a comment on ticket #17

    I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...

  • Dmitry Parhonin Dmitry Parhonin modified a comment on ticket #47

    Is this project supported? Proposed fix for 3.3: --- ../../Sources/flexjson-3.3/flexjson/ObjectBinder.java...

  • Dmitry Parhonin Dmitry Parhonin posted a comment on ticket #47

    Is this project supported? Proposed fix: --- ../../Sources/flexjson-3.3/flexjson/ObjectBinder.java...

  • Anonymous modified a comment on ticket #17

    I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...

  • Angeline Loh Angeline Loh posted a comment on discussion Help

    under 1.9.2 List<Long> list = new JSONDeserializer<List<Long>>().use(null, ArrayList.class).use("values",...

  • Anonymous modified a comment on ticket #17

    I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...

  • Peter Rainer Peter Rainer created ticket #47

    @JSON(objectFactory=) annotation ignored

  • Anonymous modified a comment on ticket #17

    I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...

  • Anonymous modified a comment on ticket #17

    I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...

  • Charlie Hubbard Charlie Hubbard posted a comment on discussion Help

    So this is a limitation of JSON standard. JSON standard only allows for strings in...

  • danny sarge danny sarge posted a comment on discussion Help

    Hey, I've been trying to serialize and deserialize a HashMap<Integer,Integer> that...

  • "chubbard" committed [r209]

    Support nulls for enum references.

  • Kristopher Stice-Hall Kristopher Stice-Hall posted a comment on discussion Help

    How do I serialize java.util.Optional class insides to be a part of the json tre...

  • Charlie Hubbard Charlie Hubbard posted a comment on discussion Help

    It's been in there for a very long time. The website docs are a little behind due...

  • Chris Marx Chris Marx posted a comment on discussion Help

    wow, that is a great feature, i've been missing this for like 2 years, is this in...

  • Charlie Hubbard Charlie Hubbard posted a comment on discussion Help

    Can you provide some more details? What does your bean look like? What is the JSON...

  • Oğuz Özcan Oğuz Özcan posted a comment on discussion Help

    Hello, I am getting the "flexjson.JSONException: Missing value at character 0" error....

  • Robert Liberatore Robert Liberatore posted a comment on discussion Help

    Well, guess I should have waited five more minutes before posting. Solved the issue...

  • Robert Liberatore Robert Liberatore modified a comment on discussion Help

    I have a class that implements Iterable. When using FlexJSON, the iterator gets used...

  • Robert Liberatore Robert Liberatore posted a comment on discussion Help

    I have a class that implements Iterable. When using FlexJSON, the iterator gets used...

  • Hernan Pablo Keena Hernan Pablo Keena modified a comment on discussion Help

    Hi, I'm having problem trying to serialize a group of object when using generics...

  • Hernan Pablo Keena Hernan Pablo Keena posted a comment on discussion Help

    Hi, I'm having problem trying to serialize a group of object when using generics...

  • Charlie Hubbard Charlie Hubbard committed [r208]

    [maven-release-plugin] prepare for next develop...

  • Charlie Hubbard Charlie Hubbard committed [r207]

    [maven-release-plugin] copy for tag flexjson-3.3

  • Charlie Hubbard Charlie Hubbard committed [r206]

    [maven-release-plugin] prepare release flexjson...

  • Charlie Hubbard Charlie Hubbard committed [r205]

    Revert: [maven-release-plugin] prepare release ...

  • Charlie Hubbard Charlie Hubbard committed [r204]

    [maven-release-plugin] prepare release flexjson...

  • Charlie Hubbard Charlie Hubbard committed [r203]

    Fix serializing numbers that have infinity and ...

  • Charlie Hubbard Charlie Hubbard committed [r202]

    Updated for 3.3 release

  • Charlie Hubbard Charlie Hubbard committed [r201]

    Added a test to support testing for subclass pr...

  • Charlie Hubbard Charlie Hubbard modified ticket #44

    Default transformers exception with null values

  • Charlie Hubbard Charlie Hubbard modified ticket #13

    "use" not working properly (on String)

  • Charlie Hubbard Charlie Hubbard modified ticket #41

    Concrete properties and interfaces

  • Charlie Hubbard Charlie Hubbard modified ticket #42

    Deserializing into a Collection broken in 3.0

  • Charlie Hubbard Charlie Hubbard committed [r200]

    Fix for #44 - Handle null values in Transformer...

  • Charlie Hubbard Charlie Hubbard modified ticket #46

    Iterables getting serialized as objects (via ObjectTransformer rather than IterableTransformer)

  • Charlie Hubbard Charlie Hubbard posted a comment on ticket #46

    I'm closing this defect since upgrading to the latest version fixes this. Anyone...

  • Charlie Hubbard Charlie Hubbard committed [r199]

    Fix for #45 - Handle exponential numbers being ...

  • Charlie Hubbard Charlie Hubbard modified ticket #45

    JsonNumber not correctly identifying decimal numbers with exponent

  • Charlie Hubbard Charlie Hubbard committed [r198]

    Fixed a defect where @JSON.transformer wasn't b...

  • Olaf Klischat Olaf Klischat posted a comment on ticket #46

    OK, I've verified that it works in 3.2. So I guess the bug is less relevant, although...

  • Olaf Klischat Olaf Klischat created ticket #46

    Iterables getting serialized as objects (via ObjectTransformer rather than IterableTransformer)

  • cbmethods4sf cbmethods4sf posted a comment on discussion Help

    After further testing, I've discovered that the problem appears to stem from the...

  • cbmethods4sf cbmethods4sf posted a comment on discussion Help

    Dear Flex Help, I recognize that in general the result of deserialization of wsimport-generated...

  • Christian Reuschling Christian Reuschling modified a comment on discussion Open Discussion

    I fall into problems by serializing some objects, and read that it is maybe by design:...

  • Christian Reuschling Christian Reuschling posted a comment on discussion Open Discussion

    I fall into problems by serializing some objects, and read that it is maybe by design:...

  • Oran Kelly Oran Kelly created ticket #45

    JsonNumber not correctly identifying decimal numbers with exponent

  • Zied Hamdi Zied Hamdi created ticket #9

    Unable to understand IllegalAccessException's origin

  • Ben Ben posted a comment on discussion Help

    Hi, According to the Flexjson document in the main page, there are 3 ways we can...

  • Charlie Hubbard Charlie Hubbard committed [r197]

    [maven-release-plugin] prepare for next develop...

  • Charlie Hubbard Charlie Hubbard committed [r196]

    [maven-release-plugin] copy for tag flexjson-3.2

  • Charlie Hubbard Charlie Hubbard committed [r195]

    [maven-release-plugin] prepare release flexjson...

  • Charlie Hubbard Charlie Hubbard committed [r194]

    Update the POM to rollback release

  • Charlie Hubbard Charlie Hubbard committed [r193]

    Rollback this tag because we couldn't release it.

  • Charlie Hubbard Charlie Hubbard committed [r192]

    Rollback this tag because we couldn't release it.

  • Charlie Hubbard Charlie Hubbard committed [r191]

    [maven-release-plugin] copy for tag flexjson-3.2

  • Charlie Hubbard Charlie Hubbard committed [r190]

    [maven-release-plugin] prepare release flexjson...

  • Charlie Hubbard Charlie Hubbard committed [r189]

    [maven-release-plugin] prepare for next develop...

  • Charlie Hubbard Charlie Hubbard committed [r188]

    [maven-release-plugin] copy for tag flexjson-3.2

  • Charlie Hubbard Charlie Hubbard committed [r187]

    [maven-release-plugin] prepare release flexjson...

  • Charlie Hubbard Charlie Hubbard committed [r186]

    Removed characters that cause UTF-8 issues duri...

  • vlastik vlastik posted a comment on ticket #44

    Or better, without breaking the backwards compatibility: public void transform(Object...

  • vlastik vlastik created ticket #44

    Default transformers exception with null values

  • Charlie Hubbard Charlie Hubbard committed [r185]

    Updated 3.2 release

1 >