jackson « collection « Java Collection Q&A

Home
Java Collection Q&A
1.algorithm
2.array
3.Array Byte
4.Array Char
5.Array Convert
6.Array Dimension
7.Array Integer
8.Array Object
9.Array String
10.ArrayList
11.collection
12.comparator
13.Development
14.Garbage Collection
15.Generic
16.hash
17.HashMap
18.HashTable
19.iterator
20.LinkedList
21.List
22.Map
23.queue
24.Set
25.Sort
26.tree
Java Collection Q&A » collection » jackson 

1. Jackson : custom collection serialization to JSON    stackoverflow.com

I am trying to json-serialize a class MyRootClass with a property that is a collection of elements of a second class MyClass:

public class MyRootClass {
   private List<MyInterface> list = ...

2. Jackson: deserialization to a collection    stackoverflow.com

I have this specific problem with JSON deserialization. Let's have this JSON structure:

{
  "header":{
    "objects":[
      {"field":"value1"},
      {"field":"value2"}
 ...

3. Custom serialization of Collection using Jackson    stackoverflow.com

I'd like to convert a java collection like this

public Collection<SomeDTO> getPages()
{
    return pages;
}
to a json array like this:
pages: [{DTO}, {DTO}, {DTO}]
This works out of the box, but ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.