PxPlus User Forum

Twitter Twitter Twitter

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

Thomas Bock

  • Diamond Member
  • *****
  • Posts: 127
    • 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

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3368
  • Mike King
    • View Profile
    • PVX Plus Technologies
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 »