Import JSON File to Fiori UI5 Application

In this example, We will create an UI5 application which allow to import the json file, read its content and show in console.

We will be following below steps-

      1. Create a File Uploader in View.xml.
      2. Define Method on Controller.

Step 1 - Create a File Uploader in View.xml

In the View.xml file, define the FileUploader in the Page content.

Do not forget to add the sap library on the View.

Step 2 - Define Method on Controller

In the Controller.js file of the view, define the method to read and display the json file content in the console.

And it is done !!!