error 17 with empty json objects

Started by Thomas Bock, August 31, 2018, 04:34:39 AM

Previous topic - Next topic

Thomas Bock

A customer received an empty json object from a web service.
It is easy to reproduce the error:
json$="{'address':{}}"; rem RFC compliant
json$=sub(json$,"'",quo)
dim load arr$[all]=json$
Error #17: Invalid file type or contents

Mike King

#1
You must be running PxPus 2016 or earlier as this was addressed a few years ago.
Please update your system and try again.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com