Knowledge Base Article

> Knowledge Base > Rapise

Created By  alexey.grinevich Friday, August 11, 2017

This topic describes how to read and write JSON data in Rapise

Reading:

 

	var jsonText = File.Read('data.json');
	var jsonData = JSON.parse(jsonText);
	

 

Writing:

	var jsonText = JSON.stringify(jsonData,null,'\t');
	File.Write('data.json', jsonText);

 

An attached sample contains a working example that opens JSON, dumps data, modifies and saves it back.

 

 


    
 

Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 8/11/2017
  • Article ID: KB275
  • Views: 179