Auto correct…

“your code”

On Mon, Sep 23, 2019 at 6:41 PM Douglas von Roeder <dvonroe...@gmail.com>
wrote:

> I haven’t tried your. Ode but dotted notation is case sensitive. Could
> that be the issue?
>
> On Mon, Sep 23, 2019 at 6:35 PM Jörg Knebel via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> G’day,
>>
>> I tried the following (pseudo code):
>>
>> Create an object
>> Fill the object with some stuff
>>
>> Create another object and filled it with stuff including a picture
>>
>> Put the second object into the first.
>>
>> JSON Stringify($MyGreatObj)
>>
>> 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
>>
>> TestPict:=$TestObject.Embeded.somePict
>>
>> Both variables are EMPTY!
>>
>>
>> ***** Next STEP
>>
>>
>> $EmbeddedObj:=$TestObject.Embeded
>>
>> $TestText:=$EmbeddedObj.sometext
>>
>>
>> $EmbeddedObj contains the object but $TestText is empty again.
>>
>> The picture is a total lost!
>>
>>
>> So, I think 4D-Objects need more time (another 25 years?) to catch up
>> with ObjectTools…
>>
>> A command like OB To BLOB would be a nice point to start.
>>
>> My 2¢
>>
>> Cheers
>> Jörg
>> **********************************************************************
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **********************************************************************
>
> --
> --
> Douglas von Roeder
> 949-910-4084
>
-- 
--
Douglas von Roeder
949-910-4084
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to