2022-06-02 12:07:24 +08:00
|
|
|
from PikaObj import *
|
|
|
|
|
|
|
|
|
|
|
|
class cJSON(TinyObj):
|
2022-06-06 11:56:29 +08:00
|
|
|
cJSON_Invalid: int
|
|
|
|
cJSON_False: int
|
|
|
|
cJSON_True: int
|
|
|
|
cJSON_NULL: int
|
|
|
|
cJSON_Number: int
|
|
|
|
cJSON_String: int
|
|
|
|
cJSON_Array: int
|
|
|
|
cJSON_Object: int
|
|
|
|
cJSON_Raw: int
|
2022-06-02 14:23:55 +08:00
|
|
|
def print(self) -> str: ...
|
2022-06-02 16:50:31 +08:00
|
|
|
def __del__(self): ...
|
2022-06-06 10:25:57 +08:00
|
|
|
def __init__(self): ...
|
2022-06-06 09:50:15 +08:00
|
|
|
def getObjectItem(self, string: str) -> cJSON: ...
|
2022-06-06 11:53:09 +08:00
|
|
|
def getArrayItem(self, index: int) -> cJSON: ...
|
|
|
|
def getArraySize(self) -> int: ...
|
2022-06-06 10:25:57 +08:00
|
|
|
def getType(self) -> int: ...
|
|
|
|
def getNext(self) -> cJSON: ...
|
|
|
|
def getPrev(self) -> cJSON: ...
|
|
|
|
def getChild(self) -> cJSON: ...
|
|
|
|
def getValueString(self) -> str: ...
|
|
|
|
def getValueInt(self) -> int: ...
|
|
|
|
def getValueDouble(self) -> float: ...
|
|
|
|
def getString(self) -> str: ...
|
2022-06-06 10:34:49 +08:00
|
|
|
def getValue(self) -> any: ...
|
2022-06-06 11:53:09 +08:00
|
|
|
def isInvalid(self) -> int: ...
|
|
|
|
def isFalse(self) -> int: ...
|
|
|
|
def isTrue(self) -> int: ...
|
|
|
|
def isBool(self) -> int: ...
|
|
|
|
def isNull(self) -> int: ...
|
|
|
|
def isNumber(self) -> int: ...
|
|
|
|
def isString(self) -> int: ...
|
|
|
|
def isArray(self) -> int: ...
|
|
|
|
def isObject(self) -> int: ...
|
|
|
|
def isRaw(self) -> int: ...
|
2022-06-06 13:46:25 +08:00
|
|
|
def addItemToArray(self, item: cJSON): ...
|
|
|
|
def addItemToObject(self, string: str, item: cJSON): ...
|
|
|
|
|
|
|
|
|
2022-06-07 10:40:23 +08:00
|
|
|
def Parse(value: str) -> cJSON: ...
|
2022-06-06 14:55:57 +08:00
|
|
|
|
|
|
|
|
2022-06-06 13:46:25 +08:00
|
|
|
class Null(cJSON):
|
|
|
|
def __init__(self): ...
|
|
|
|
|
|
|
|
|
|
|
|
class True_(cJSON):
|
|
|
|
def __init__(self): ...
|
|
|
|
|
|
|
|
|
|
|
|
class False_(cJSON):
|
|
|
|
def __init__(self): ...
|
|
|
|
|
|
|
|
|
|
|
|
class Bool(cJSON):
|
|
|
|
def __init__(self, bolean: int): ...
|
|
|
|
|
|
|
|
|
|
|
|
class Number(cJSON):
|
|
|
|
def __init__(self, num: float): ...
|
|
|
|
|
|
|
|
|
|
|
|
class String(cJSON):
|
|
|
|
def __init__(self, string: str): ...
|
|
|
|
|
|
|
|
|
|
|
|
class Raw(cJSON):
|
|
|
|
def __init__(self, raw: str): ...
|
|
|
|
|
|
|
|
|
|
|
|
class Array(cJSON):
|
|
|
|
def __init__(self): ...
|
|
|
|
|
|
|
|
|
|
|
|
class Object(cJSON):
|
|
|
|
def __init__(self): ...
|
|
|
|
|
|
|
|
|
|
|
|
class StringReference(cJSON):
|
|
|
|
def __init__(self, string: str): ...
|
|
|
|
|
|
|
|
|
|
|
|
class ObjectReference(cJSON):
|
|
|
|
def __init__(self, child: cJSON): ...
|
|
|
|
|
|
|
|
|
|
|
|
class ArrayReference(cJSON):
|
|
|
|
def __init__(self, child: cJSON): ...
|