001package org.nuxeo.box.api.marshalling.jsonentities;
002
003import org.nuxeo.box.api.marshalling.exceptions.BoxJSONException;
004import org.nuxeo.box.api.marshalling.interfaces.IBoxJSONParser;
005import org.nuxeo.box.api.marshalling.interfaces.IBoxJSONStringEntity;
006
007import java.util.LinkedHashMap;
008
009/**
010 * Implemenation of {@link org.nuxeo.box.api.marshalling.interfaces.IBoxJSONStringEntity} based on LinkedHashMap.
011 */
012public class MapJSONStringEntity extends LinkedHashMap<String, Object> implements IBoxJSONStringEntity {
013
014    private static final long serialVersionUID = 1L;
015
016    @Override
017    public String toJSONString(IBoxJSONParser parser) throws BoxJSONException {
018        return parser.convertBoxObjectToJSONStringQuietly(this);
019    }
020
021}