Question Marcos Roberto · Oct 15, 2019

RewindJSON

Good Morning! How can I use the method Rewind() to read a file JSON?

Comments

Nadyan Pscheidt · Oct 15, 2019

Hello, Marcos!

The Rewind function moves the reading pointer back to the start of the stream. It's useful if you want to read a stream from the beginning again.

for example:

do ##class(%ZEN.Auxiliary.jsonProvider).%ParseJSON(obj,,.ObjData)
do ObjData.Rewind()
do ObjData.Read()

0
Marcos Roberto  Oct 15, 2019 to Nadyan Pscheidt

Thank you Nadyan, this is what I was looking for. That was of great help.
 

0