JSON to Datagrid

Tom Glod tom at makeshyft.com
Wed Dec 8 13:36:29 EST 2021


JSONToArray works well for me if your JSON is correct.
Always use try when decoding from JSON to catch any errors.

On Wed, Dec 8, 2021 at 12:58 PM Mike Kerner via use-livecode <
use-livecode at lists.runrev.com> wrote:

> completely off the top of my head, so this might not be quite right
> jsonToArray
> set the dgData of group "datagrid 1" to <your array>
>
> On Wed, Dec 8, 2021 at 11:39 AM Keith Clarke via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > Hi Skip,
> > I don’t use Datagrids but have used a two-step process to get JSON into
> > the Tree widget and a similar process may provide a direction of travel
> to
> > test…?
> >
> > 1. JSON-to-array
> >
> https://lessons.livecode.com/m/4071/l/1303394-how-to-read-in-data-from-a-json-file
> > 2. Setting the array data of datagrid…
> >
> > Good luck.
> > Best,
> > Keith
> >
> > > On 8 Dec 2021, at 16:15, Skip Kimpel via use-livecode <
> > use-livecode at lists.runrev.com> wrote:
> > >
> > > I have been googling a solution for this but have not found a solid
> > > solution for this.
> > >
> > > Can anybody lead me in the right direction on this?
> > >
> > > SKIP
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411


More information about the use-livecode mailing list