Stack overflow error caused by flexjson serialization List
Stack overflow error caused by flexjson serialization Map
Stack overflow error caused by flexjson parsing (2)
Stack overflow error caused by flexjson parsing
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.
Added defaultType to JSONTypeHierarchy
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.
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(...
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(...
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.
Fix TypeVariable where the TypeVariable is in a base class and the subclass
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.
Removed bad import causing a warning.
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.
[maven-release-plugin] prepare for next development iteration
[maven-release-plugin] copy for tag flexjson-4.0.0
[maven-release-plugin] prepare release flexjson-4.0.0
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.
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);...
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......
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......
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.
Make sure the add method returns something that supports generic typing.
Fixed a test that has a poor solution that isn't general solution. Difficult mapping problem.
javadoc clean up.
Make sure we can override the values path with the use() method for maps and collections.
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.
Updated version to 4.0.0
Added typing generic of Date to the Transformer.
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.
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.
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...
Hello, can your FlexJson help me accomplish: jsf managed bean accessing MySQL remote...
(Not sure if this is a known bug or limitation) When an object is being serliazed,...
When you create the following class public class Test { private String item; private...
i think this is a bug in flexjson. here's an easy reproduction. here's my set up:...
I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...
Is this project supported? Proposed fix for 3.3: --- ../../Sources/flexjson-3.3/flexjson/ObjectBinder.java...
Is this project supported? Proposed fix: --- ../../Sources/flexjson-3.3/flexjson/ObjectBinder.java...
I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...
under 1.9.2 List<Long> list = new JSONDeserializer<List<Long>>().use(null, ArrayList.class).use("values",...
I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...
@JSON(objectFactory=) annotation ignored
I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...
I receive the same error with an empty array: {"devices":[]} java.lang.IndexOutOfBoundsException:...
So this is a limitation of JSON standard. JSON standard only allows for strings in...
Hey, I've been trying to serialize and deserialize a HashMap<Integer,Integer> that...
Support nulls for enum references.
How do I serialize java.util.Optional class insides to be a part of the json tre...
It's been in there for a very long time. The website docs are a little behind due...
wow, that is a great feature, i've been missing this for like 2 years, is this in...
Can you provide some more details? What does your bean look like? What is the JSON...
Hello, I am getting the "flexjson.JSONException: Missing value at character 0" error....
Well, guess I should have waited five more minutes before posting. Solved the issue...
I have a class that implements Iterable. When using FlexJSON, the iterator gets used...
I have a class that implements Iterable. When using FlexJSON, the iterator gets used...
Hi, I'm having problem trying to serialize a group of object when using generics...
Hi, I'm having problem trying to serialize a group of object when using generics...
[maven-release-plugin] prepare for next develop...
[maven-release-plugin] copy for tag flexjson-3.3
[maven-release-plugin] prepare release flexjson...
Revert: [maven-release-plugin] prepare release ...
[maven-release-plugin] prepare release flexjson...
Fix serializing numbers that have infinity and ...
Updated for 3.3 release
Added a test to support testing for subclass pr...
Default transformers exception with null values
"use" not working properly (on String)
Concrete properties and interfaces
Deserializing into a Collection broken in 3.0
Fix for #44 - Handle null values in Transformer...
Iterables getting serialized as objects (via ObjectTransformer rather than IterableTransformer)
I'm closing this defect since upgrading to the latest version fixes this. Anyone...
Fix for #45 - Handle exponential numbers being ...
JsonNumber not correctly identifying decimal numbers with exponent
Fixed a defect where @JSON.transformer wasn't b...
OK, I've verified that it works in 3.2. So I guess the bug is less relevant, although...
Iterables getting serialized as objects (via ObjectTransformer rather than IterableTransformer)
After further testing, I've discovered that the problem appears to stem from the...
Dear Flex Help, I recognize that in general the result of deserialization of wsimport-generated...
I fall into problems by serializing some objects, and read that it is maybe by design:...
I fall into problems by serializing some objects, and read that it is maybe by design:...
JsonNumber not correctly identifying decimal numbers with exponent
Unable to understand IllegalAccessException's origin
Hi, According to the Flexjson document in the main page, there are 3 ways we can...
[maven-release-plugin] prepare for next develop...
[maven-release-plugin] copy for tag flexjson-3.2
[maven-release-plugin] prepare release flexjson...
Update the POM to rollback release
Rollback this tag because we couldn't release it.
Rollback this tag because we couldn't release it.
[maven-release-plugin] copy for tag flexjson-3.2
[maven-release-plugin] prepare release flexjson...
[maven-release-plugin] prepare for next develop...
[maven-release-plugin] copy for tag flexjson-3.2
[maven-release-plugin] prepare release flexjson...
Removed characters that cause UTF-8 issues duri...
Or better, without breaking the backwards compatibility: public void transform(Object...
Default transformers exception with null values
Updated 3.2 release