org.minijson.tool.profiler.JsonCompatibleRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minijson-tool Show documentation
Show all versions of minijson-tool Show documentation
A simple JSON parser/generator in Java. Tool module.
The newest version!
package org.minijson.tool.profiler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import org.minijson.builder.BareJsonBuilder;
import org.minijson.builder.JsonBuilderException;
import org.minijson.builder.impl.AbstractBareJsonBuilder;
import org.minijson.builder.policy.base.DefaultBuilderPolicy;
import org.minijson.mini.MiniJsonParser;
public class JsonCompatibleRunner
{
private static final Logger log = Logger.getLogger(MiniJsonParser.class.getName());
private BareJsonBuilder bareJsonBuilder = null;
public JsonCompatibleRunner()
{
init();
}
private void init()
{
bareJsonBuilder = new AbstractBareJsonBuilder(DefaultBuilderPolicy.BEANDRILLDOWN) {};
// bareJsonBuilder = new AbstractBareJsonBuilder(DefaultBuilderPolicy.MAPANDLISTS) {};
// bareJsonBuilder = new AbstractBareJsonBuilder(DefaultBuilderPolicy.ESCAPESLASH) {};
// bareJsonBuilder = new AbstractBareJsonBuilder(DefaultBuilderPolicy.NOESCAPESLASH) {};
// ((AbstractBareJsonBuilder) bareJsonBuilder).setBuilderPolicy(DefaultBuilderPolicy.BEANDRILLDOWN);
// // ((AbstractBareJsonBuilder) bareJsonBuilder).setBuilderPolicy(DefaultBuilderPolicy.MAPANDLISTS);
// // ((AbstractBareJsonBuilder) bareJsonBuilder).setBuilderPolicy(DefaultBuilderPolicy.ESCAPESLASH);
// // ((AbstractBareJsonBuilder) bareJsonBuilder).setBuilderPolicy(DefaultBuilderPolicy.NOESCAPESLASH);
}
public void runBuild()
{
Map map = new LinkedHashMap();
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy