Subject Re: csv field data
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Mon, 19 Jul 2021 20:41:40 -0700
Newsgroups dbase.getting-started

On 7/19/2021 2:59 PM, Charlie wrote:
> Ken..  Thanks for that build tip.  Think I found the solution with this:
>
> shipcost = str(master->shipcost,7,2)
> arr= "{^price^:[^"+ltrim(shipcost)+"^]*^method^:[^Fedex^]}"
>
> It actually works, then a macro in libre to change ^ = "  and * = ,

Well, okay. Glad you have something working. Sometimes stepping back a
bit and looking at what's going on with the "big" picture helps. Knowing
that JSON is just text, means you can build the string yourself ...

Ken

--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm