|
etr
4.0-pre
|
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"}
Should Be Equal ${dict.key} value
Should Be Equal ${dict["key"]} value
| def EtrJson.EtrJson.encode_json | ( | self, | |
| input, | |||
pretty = False |
|||
| ) |
Encode input string to JSON and return result.