Package org.vostok.json.converter

List of all default converters.

See: Description

Package org.vostok.json.converter Description

List of all default converters. This should cover all need.
If you do need a converter, you can add new ones (see JSONContext). It must implement one of the interface ObjectConverterInterface or SerieConverterInterface.

For example, here the code for a Double :

public class DoubleConverter extends AbstractNumber implements ObjectConverterInterface {
        public Object getObject(String data) throws ParserException {
                try {
                        return new Double(data);
                } catch (Exception e) {
                throw new ParserException();
                }
        }
}

For ArrayList :
public class ArrayListConverter extends AbstractIterable implements SerieConverterInterface {
        private ArrayList array = new ArrayList();

        public void add(Object o) throws NotYetDefinedException {
                this.array.add(o);
        }

        public Object getObject() throws NotYetDefinedException {
                return this.array;
        }
}

Note you do not need a converter for bean (or pojo). The library already provide this functionnality.

See Also:
ObjectConverterInterface, SerieConverterInterface, JSONContext, Discard