skip to main content

Internal Objects : JSONStream Class (com.iscobol.rts.JSONStream) : writeToFile

writeToFile
Puts the content of the data item associated with a JSONStream object into a file.
General format
void writeToFile ( Json-Destination )
Syntax rules
1.
General rules
1.
Json-Destination refers to a regular disk file.
2.
 
NOTE - If the number of occurrences of a JSON fields is not known at the time the program is written, specifying the DYNAMIC phrase of the OCCURS clause is recommended.
Code example
configuration section.
    class jsonStream  as "com.iscobol.rts.JSONStream"
working-storage section.
77 objJsonStream object reference jsonStream.
procedure division.
objJsonStream:>writeToFile("Sample.json")

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left