Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread JSON Serialization Bug
Thu, Aug 20 2015 11:37 AMPermanent Link

Doug B

In WebCore:

procedure TWriter.BooleanProperty(const Name: String;
                                 Value: Boolean);
begin
  PropertyName(Name);
  Append(BoolToStr(Value));
end;

BoolToStr() returns either BOOL_TRUE or BOOL_FALSE, which are 'True' and 'False' respectively.

The JSON parser on the server expects 'true' and 'false' (in lower case).

Thanks,
Doug
Thu, Aug 20 2015 11:42 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Doug,

<< BoolToStr() returns either BOOL_TRUE or BOOL_FALSE, which are 'True' and 'False' respectively.

The JSON parser on the server expects 'true' and 'false' (in lower case). >>

Already fixed and ready to go, just waiting on the docs. I'm not sure when this was fixed, but I had to double-check the distributed 2.00 source to confirm that it was, indeed, missing there.

Tim Young
Elevate Software
www.elevatesoft.com
Image