PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Thomas Bock on August 31, 2018, 04:34:39 AM

Title: error 17 with empty json objects
Post by: Thomas Bock on August 31, 2018, 04:34:39 AM
A customer received an empty json object from a web service.
It is easy to reproduce the error:
Code: [Select]
json$="{'address':{}}"; rem RFC compliant
json$=sub(json$,"'",quo)
dim load arr$[all]=json$
Error #17: Invalid file type or contents
Title: Re: error 17 with empty json objects
Post by: Mike King on September 04, 2018, 10:27:32 AM
You must be running PxPus 2016 or earlier as this was addressed a few years ago.
Please update your system and try again.