rad
3.0.0
|
Robot Framework Library of JSON keywords provided by etr. More...
Public Member Functions | |
def | decode_json (self, input) |
Decode input as JSON string and return decoded value. More... | |
def | encode_json (self, input, pretty=False) |
Encode input string to JSON and return result. More... | |
Robot Framework Library of JSON keywords provided by etr.
def EtrJson.EtrJson.decode_json | ( | self, | |
input | |||
) |
Decode input as JSON string and return decoded value.
Decoded dictionaries use the robot type DotDict which support dot-access syntax: ${dict} = Decode Json {"key": "value"} # Dot-access syntax Should Be Equal ${dict.key} value # Standard dict syntax Should Be Equal ${dict["key"]} value
def EtrJson.EtrJson.encode_json | ( | self, | |
input, | |||
pretty = False |
|||
) |
Encode input string to JSON and return result.