![]() |
SG++-Doxygen-Documentation
|
Functions | |
parseAttribute (attrValue, attrName) | |
parseKeyAsTuple (d) | |
reprBool (attrValue) | |
reprDict (attrValue) | |
reprFloat (attrValue) | |
reprInt (attrValue) | |
reprKey (attrValue) | |
reprList (attrValue) | |
reprString (attrValue) | |
reprTuple (attrValue) | |
reprVal (attrValue) | |
stringToList (s, f=float) | |
stringToListOfLists (s, f=float) | |
stringToTupleOfFloats (s) | |
python.uq.jsonLib.parseAttribute | ( | attrValue, | |
attrName | |||
) |
Parses a single class attribute to the correspondent string representation in json. @param attrValue: value of the attribute @param attrName: name of the attribute @return: json string equivalence
References python.uq.jsonLib.reprString().
python.uq.jsonLib.parseKeyAsTuple | ( | d | ) |
Converts the string representation of a dict to an actual dict @param d: dictionary
References python.uq.jsonLib.stringToTupleOfFloats().
python.uq.jsonLib.reprBool | ( | attrValue | ) |
Referenced by python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprDict | ( | attrValue | ) |
References python.uq.jsonLib.reprKey().
Referenced by python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprFloat | ( | attrValue | ) |
Referenced by python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprInt | ( | attrValue | ) |
Referenced by python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprKey | ( | attrValue | ) |
Referenced by python.uq.jsonLib.reprDict().
python.uq.jsonLib.reprList | ( | attrValue | ) |
Referenced by python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprString | ( | attrValue | ) |
Referenced by python.uq.jsonLib.parseAttribute(), and python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprTuple | ( | attrValue | ) |
Referenced by python.uq.jsonLib.reprVal().
python.uq.jsonLib.reprVal | ( | attrValue | ) |
Computes a string representation of attrValue that is valid json. Supported are: 1) boolean 2) integer 3) dictionary 4) float 5) list, np.ndarray 6) tuple 7) string 8) DataVector 9) objects with ".toJson" method 10) objects with ".serialize" method @param attrValue: arbitrary object
References python.uq.jsonLib.reprBool(), python.uq.jsonLib.reprDict(), python.uq.jsonLib.reprFloat(), python.uq.jsonLib.reprInt(), python.uq.jsonLib.reprList(), python.uq.jsonLib.reprString(), and python.uq.jsonLib.reprTuple().
python.uq.jsonLib.stringToList | ( | s, | |
f = float |
|||
) |
python.uq.jsonLib.stringToListOfLists | ( | s, | |
f = float |
|||
) |
python.uq.jsonLib.stringToTupleOfFloats | ( | s | ) |
Converts s to a tuple @param s: string @return: tuple represented by s
Referenced by python.uq.jsonLib.parseKeyAsTuple().