> Save objectText to file
>
> Opened the file in BBEdit:
> {
> "Para1": "2019-09-24",
> "Para2": 36170,
> "ActivationCode": "activationCode",
> "Embeded": {
> "SomePict": "[object Picture]",
> "someText": "TestText",
> "aRealNumber": 3.1415926535898
> }
> }
>
> ************ NOW
>
> $ObjText := Document To Text
>
> $TestObject:=JSON Parse($ObjText)
>
>
> $TestText:=$TestObject.Embeded.sometext
Property names are case-sensitive. That why this one failed.
> TestPict:=$TestObject.Embeded.somePict
https://doc.4d.com/4Dv17R5/4D/17-R5/Data-Types.300-4128319.en.html
<https://doc.4d.com/4Dv17R5/4D/17-R5/Data-Types.300-4128319.en.html>
When exposed as text in the debugger or exported to JSON, picture object
properties print "[object Picture]”.
> So, I think 4D-Objects need more time (another 25 years?) to catch up with
> ObjectTools…
Usually it only takes 10-15 years for them to catch up. 😁
> A command like OB To BLOB would be a nice point to start.
That would be pretty trivial to write yourself.
- Aparajita
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************