Re: JSON Plugin for 4Dv17

2021-04-09 Thread Tarawerkz via 4D_Tech

Hi, thanks to all for the replies.  
I will look into the documentation again.

Regards,
Ronnie
Tarawerkz
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: JSON Plugin for 4Dv17

2021-04-08 Thread Dani Beaubien via 4D_Tech
4Dv17 supports C_OBJECT typed variables directly that can be converted to and 
from JSON text.
Take a look at the JSON Parse and JSON Stringify commands.

https://doc.4d.com/4Dv17/4D/17.5/JSON.201-5255335.en.html 


Dani Beaubien
Open Road Development

> On Apr 8, 2021, at 12:33 AM, Tarawerkz via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> I have a client whose database application currently outputs a series of text 
> files in an exchange with an independent web database.
> In an effort to further streamline this functionality, it have been proposed 
> to convert and integrate the various text file output to a JSON file format 
> instead.
> 
> Is there currently any 4D plugin for creating JSON files in 4D that is 
> compatible with 4Dv17 (Windows)?
> Thank you.
> 
> Regards,
> Ronnie
> Tarawerkz
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: JSON Plugin for 4Dv17

2021-04-08 Thread Adam Bevan via 4D_Tech
This is supported natively.

$vJ_Object:=New object
$vJ_Object.value1:="stuff"
$vJ_Object.value2:="morestuff"
$vJ_Object.value3:="otherstuff"
$vT_Text:=Json Stringify($vJ_Object;*)
TEXT TO DOCUMENT($vT_DocPath;$vT_Text)

Adam Bevan
Argus Productions Inc. 



On Thu, 8 Apr 2021 at 16:34, Tarawerkz via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hi All,
>
> I have a client whose database application currently outputs a series of
> text files in an exchange with an independent web database.
> In an effort to further streamline this functionality, it have been
> proposed to convert and integrate the various text file output to a JSON
> file format instead.
>
> Is there currently any 4D plugin for creating JSON files in 4D that is
> compatible with 4Dv17 (Windows)?
> Thank you.
>
> Regards,
> Ronnie
> Tarawerkz
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: JSON Plugin for 4Dv17

2021-04-08 Thread Jörg Knebel via 4D_Tech


> On 08 /04 /2021, at 16:33, Tarawerkz via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Is there currently any 4D plugin for creating JSON files in 4D that is 
> compatible with 4Dv17 (Windows)?
> Thank you.

What about using native 4D commands?

Look into Objects, meaning create a new one, fill it with your data and then 
use JSON Stringify.

Helpful?

Cheers
Jörg
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

JSON Plugin for 4Dv17

2021-04-08 Thread Tarawerkz via 4D_Tech
Hi All,

I have a client whose database application currently outputs a series of text 
files in an exchange with an independent web database.
In an effort to further streamline this functionality, it have been proposed to 
convert and integrate the various text file output to a JSON file format 
instead.

Is there currently any 4D plugin for creating JSON files in 4D that is 
compatible with 4Dv17 (Windows)?
Thank you.

Regards,
Ronnie
Tarawerkz




**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**