/*Copyright (C) 2026 the APIJSON group. All rights reserved.
This source code is licensed under the Apache License Version 2.0.*/
package apijson.orm;
import java.util.*;
import apijson.JSON;
import apijson.Log;
import apijson.StringUtil;
/**JSONRequest for Server to replace apijson.JSONMap,
* put JSON.parseObject(value) and not encode in public cases
* @author Lemon
* @see #put(String, Object)
*/
public class JSONRequest implements apijson.JSONRequest {
protected Map map = new LinkedHashMap();
public JSONRequest() {
super();
}
/**
* encode = true
* {@link #JSONRequest(String, Object)}
* @param object
*/
public JSONRequest(Object object) {
super();
put(object);
}
/**
* @param name
* @param object
*/
public JSONRequest(String name, Object object) {
super();
put(name, object);
}
///**create a parent JSONMap named KEY_ARRAY
// * @param count
// * @param page
// * @return {@link #toArray(int, int)}
// */
//public LinkedHashMap toArray(int count, int page) {
// return toArray(count, page, null);
//}
//
///**create a parent JSONMap named name+KEY_ARRAY.
// * @param count
// * @param page
// * @param name
// * @return {name+KEY_ARRAY : this}. if needs to be put, use {@link #putsAll(Map