EnforceTypes
This task allows enforcing types in Json documents by giving an array of
Last updated
Was this helpful?
This task allows enforcing types in Json documents by giving an array of
Task version: 1.0.1
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.CrossplatformJSON/tree/main/Frends.JSON.EnforceTypes
Json : String
The JSON string to be processed.
Default: -
Example: {"hello": "123","hello_2": "123.5","world": "true","bad_arr": "hello, world","bad_arr_2": { "prop1": 123 },"good_arr": [ "hello, world" ],"good_arr_2": [ { "prop1": 123 } ]}
Rules : JsonTypeRule[]
JSON data type rules to enforce.
Default: -
Example: [{new JsonTypeRule{JsonPath = "hello", DataType = JsonDataType.Number }}, {new JsonTypeRule{JsonPath = "hello_2", DataType = JsonDataType.Number }}]
JsonAsString : String
The input json as a string.
Example: "{"hello": 123,"hello_2": 123.5,"world": true,"bad_arr": ["hello, world"],"bad_arr_2": [{"prop1": 123}],"good_arr": ["hello, world"],"good_arr_2": [{"prop1": 123}]}"
Changelog for Task Frends.JSON.EnforceTypes.
Updated dependency for Newtonsoft.Json from 13.0.1 to 12.0.1
Initial implementation
Last updated
Was this helpful?
Was this helpful?

