1 package org.json.simple.parser;
7 * Container factory for creating containers for JSON object and JSON array.
9 * @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory)
11 * @author FangYidong<fangyidong@yahoo.com.cn>
13 public interface ContainerFactory {
15 * @return A Map instance to store JSON object, or null if you want to use org.json.simple.JSONObject.
17 Map createObjectContainer();
20 * @return A List instance to store JSON array, or null if you want to use org.json.simple.JSONArray.
22 List creatArrayContainer();