001package org.nuxeo.box.api.marshalling.interfaces; 002 003import org.nuxeo.box.api.marshalling.exceptions.BoxJSONException; 004 005/** 006 * Interface for classes that can be converted to JSON Strings. 007 */ 008public interface IBoxJSONStringEntity { 009 010 /** 011 * Convert to JSON String. 012 * 013 * @param parser json parser 014 * @return JSON String 015 * @throws BoxJSONException 016 */ 017 String toJSONString(IBoxJSONParser parser) throws BoxJSONException; 018}