public class JSONGenerator extends Object
MetaBean
s.
This implementation uses a freemarker template to generate the output.Constructor and Description |
---|
JSONGenerator() |
JSONGenerator(String templateName) |
JSONGenerator(freemarker.template.Template template) |
public JSONGenerator() throws IOException
IOException
public JSONGenerator(String templateName) throws IOException
IOException
public JSONGenerator(freemarker.template.Template template)
public String toJSON(MetaBean metaBean) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
public String toJSON(Collection<MetaBean> metaBeans) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
public void toJSON(Collection<MetaBean> metaBeans, Writer out) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.