I am trying to create a JSON string from a database using the Chilkat JSON object. I started with the example here: Create more Complex JSON Document. The JSON that I am trying create is a dictionary of arrays. If I modify the example code by removing the top 3 strings I get an object error. I am not sure the cause but I think it is something internal.
asked Mar 30 at 17:59
Thanks! This was a bug -- if the JSON object is completely empty, and the very first item added is a sub-object, then the AddObjectAt returns false to indicate failure. (Internally, there is some initialization code that needed to be called but was not.)
This new build should fix it:
answered Apr 02 at 15:29