Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2019-03-10 23:09:52

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

PJSOCT – Parse JSON string - gives error when true or false in string

The FB 'PJSOCT' returns an error message when one of the JSON-objects has a value which equals 'false' or 'true'.

Returning strings is handled correctly by FB 'PJSOCT', even floats are processed....is this a bug or am I trying something which will never work?



(FYI : 'PJROCT' is returning the same error message as 'PJSOCT')

2019-03-10-21_01_43-Window.png

Offline

#2 2019-03-11 10:21:45

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: PJSOCT – Parse JSON string - gives error when true or false in string

Hi scoobsalamander,

this is certainly a bug.
{"value": true} is definitely valid JSON which should be processed without any error. I already reported the issue to our developers.

Is the functionality critical for your future work? As a workaround: is there any chance to change the type from boolean to byte to proceed without error?

Thank you very much for your report.

Regards, Tomas

Offline

#3 2019-03-11 10:37:56

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: PJSOCT – Parse JSON string - gives error when true or false in string

Hi Tomas,

No, it's not critical I was just playing around with some new functionalities (MQTT)...

I am not able to change the setup of the JSON string but I already have a working 'workaround'.... actually I am currently using NODE-RED and I thought it was time to get rid of it.
I think I'll just need to wait for the next update...anyhow, it looks already promising smile



Regards,

Kris

Offline

Board footer

Powered by FluxBB