PxPlus User Forum

Twitter Twitter Twitter

Author Topic: error 17 with empty json objects  (Read 1243 times)

Thomas Bock

  • Diamond Member
  • *****
  • Posts: 177
    • View Profile
error 17 with empty json objects
« 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

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: error 17 with empty json objects
« Reply #1 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.
« Last Edit: September 04, 2018, 06:39:32 PM by Mike King »
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com