cancel
Showing results for 
Search instead for 
Did you mean: 

Is it save to have my business data stored in a JSONModel?

0 Kudos

Hello everyone,

I'm currently working on a SAPUI5 application which is holding its application data in client side json files (just like in the SAP Fiori webshop reference application -> Products.json).

Is it save to have my "business" data in a json file on client side? Is it possible for the client to manipulate the data in the json file and so corrupt the data for every other user of this web application? This might be a stupid question but this thought came up as it is possible to manipulate the app logic implemented in the controller.js

Thank you in advance!

Marvin

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor

When a client loads a web app, their browser will download all of the files including the json files which are part of the project. The client will have no ability to edit these files and then send them back to the server. You would need a service exposing the data, which could be in json, to do so.

Regards,

Jamie

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

it is local only, how can it mess up with other?

0 Kudos

I'm not sure if i understand it correctly:

The whole sapui5 project including the json file is deployed on an application server. Now what happens when a client is loading the webapp? does he get a local copy of all the project files, so he cant mess up my original json file with all the data I setup?

What if i want to offer the user a possibility to create/update/delete an entry from my json model? In this case he needs to have access to the original json model, doesn't he?

regards,

Marvin