Maybe I missed the point, but why are you not simply using the parse json command in A4D. I use this all the time to work with JSON strings within A4D.
Peter > Tom DeMeo <mailto:[email protected]> > 10. Januar 2016 22:36 > I understand that JSON is a “string representation of an object” and > not literally an object. Nonetheless, I think you would agree that it > can be useful to have routines that simplify looking up the values > that are stored in those strings. > > > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://list.aparajitaworld.com/listinfo/active4d-dev > Archives: http://active4d-nabble.aparajitaworld.com/ > Aparajita Fishman <mailto:[email protected]> > 10. Januar 2016 21:28 >> I’m curious what the plans are for future JSON support in Active4D. > > None at the moment. > > >> We have nice tools to write JSON, but not to read it. I know we can convert >> JSON to a collection, but it would be great to have commands to get JSON >> values directly from JSON objects as well as set them. > > No language I know of provides this functionality, including 4D. Perhaps you > don't quite understand what JSON is. As the official website says, "JSON > (JavaScript Object Notation) is a lightweight data-interchange format." In > other words, JSON is meant to be a *string* encoding of structured data, > specifically designed as a way to send data over a network. JSON is *not* an > object, it is a string representation of an object. > > So one cannot "get" or "set" a JSON value, because it is not meant to be a > dynamic object, it's meant to be a string used to import/export entire > objects (or arrays of objects). > > >> Are there plans to support the new 4D objects and related commands? > > I'd love to, but 4D does not provide any plugin support for objects, so > currently it's impossible. > > >> If not, are there any plans to provide A4D commands to get JSON values? > > See what I said above about JSON. > > Peace, > > - Aparajita > > > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://list.aparajitaworld.com/listinfo/active4d-dev > Archives: http://active4d-nabble.aparajitaworld.com/ > Tom DeMeo <mailto:[email protected]> > 10. Januar 2016 20:45 > Hi, > > > I’m curious what the plans are for future JSON support in Active4D. We > have nice tools to write JSON, but not to read it. I know we can > convert JSON to a collection, but it would be great to have commands > to get JSON values directly from JSON objects as well as set them. > > Are there plans to support the new 4D objects and related commands? If > not, are there any plans to provide A4D commands to get JSON values? > > > Regards, > > > Tom DeMeo > _______________________________________________ > Active4D-dev mailing list > [email protected] > http://list.aparajitaworld.com/listinfo/active4d-dev > Archives: http://active4d-nabble.aparajitaworld.com/ _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
