John Baughman | 10 Jul 2012 23:49
Picon

Re: Help using JSON Compnent


On Jul 10, 2012, at 1:22 AM, Bill Hutten wrote:

> C_TEXT($data;$text)
> C_LONGINT($num)
> 
> json_init
> $data:=json_parse ($json)
> $num:=json_getNum($data;"_Clinical_Exam_Sequence")
> $text:=json_getText ($data;"Profile")

	Jeeeez, it took me forever to figure out what was different between my code and yours cause yours worked. I
was passing a pointer to the parsed json string...

		$text:=json_getText (->$data;"Profile")  instead of $text:=json_getText ($data;"Profile")

	Some times I get wrapped around the axel for no apparent reason than shear stupidity.

	Bill, thanks for the component. Worked out very well for my project.

John 

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
(Continue reading)


Gmane