Source
import json import demistomock as demisto from CommonServerPython import * def load_json(args): json_str = args["input"] obj = json.loads(json_str, strict=False) return {"EntryContext": {"JsonObject": obj}, "Type": entryTypes["note"], "ContentsFormat": formats["json"], "Contents": obj} if __name__ in ("__builtin__", "builtins", "__main__"): res = load_json(demisto.args()) demisto.results(res)
README
LoadJSON
Loads a JSON from a string input, and returns a JSON object result.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | Utility |
Inputs
| Argument Name | Description |
|---|---|
| input | The input string to transform to a JSON object. |
Outputs
| Path | Description | Type |
|---|---|---|
| JsonObject | The JSON object loaded from the input. | Unknown |