DataLayer.JSON
The DataLayer.JSON element gives developers the ability to retrieve data from a JavaScript Object Notation (JSON) data file or REST-style web service.
Logi Info also includes DataLayer.REST and DataLayer.XMLfor use with REST-style web services and DataLayer.Web Service for use with SOAP-style web services.
The following topics discuss the developer to the DataLayer.JSON element:
- DataLayer.JSON Attributes
- Working with DataLayer.JSON
- Using It with REST Web Services
- Multi-Step Processing
- Using Different HTTP Methods and Request Body Data
About DataLayer.JSON
This element was renamed; formerly it was known as DataLayer.JSON File. The element retrieves data from a static JSON file stored locally, or remotely (using a URL), or from a REST-style web service. DataLayer.JSON can also use Connection.Logi Application Service as its connection to data.
If you're trying to communicate with a web service that requires the TLS 1.1 or 1.2 protocol, you will need to use Logi Info v12.2-SP4 or later (earlier versions only support TLS 1.0). In addition, Info Java applications must use Oracle JDK 1.8 or OpenJDK 8 to make the protocol work.