1. Home
  2. JSON

JSON

◷ Reading Time: 2 minutes

Introduction

FlexRule provides a dynamic and flexible platform. What that means is that types do not impact the execution of your expressions. These are interchangeable as long as they have the same structure. This gives you the flexibility to interchange the input with different types and still execute the model without any issues. This concept applies to every type, including JSON.

Native Complex Data

FlexRule supports built hierarchical complex values. (For more information, check Native Complex Value)

Reading JSON

There are several ways of reading JSON in FlexRule:

  1. Define a parameter and set the type to JSON
  2. Orchestration with Flow and use File with JSON file type
  3. Pass in a string as input and use |asJson to get the JSON object at runtime

If your input parameter is a JSON, you must set the type as JSON.

Members

FlexRule expressions allow you to access and manipulate members of any object (including JSON).

Updated on May 4, 2020

Was this article helpful?