BRules 1.1 adds functions for testing JSON. isJSON() and hasJSONPath() examine JSON strings before running the tFileInputJSON component.
This job runs custom code in a tJava component. The If condition checks the hasPath flag. Processing continues with a tFixedFlowInput (an adapter) directed to a tFileInputJSON.
Using BRules hasJSONPath() Routine |
JSON Paths in a tFileInputJSON |
Other Notes
BRules uses Java 6 scripting features for the JSON processing. If you try to use JRE 5, isJSON() and hasJSONPath() will throw exceptions. The other functions like isCharset() and all() are available.
No comments:
Post a Comment