Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3762

JSON generation

$
0
0

Good evening (o;

As suggested I’m trying to use JSON for storing project settings and source files for my FPGA IDE to a JSON.

Now what is wrong with this?

If I move the “projectFile.Value(“sources” = sources” below of the error message, this causes then the crash.

Just want to generate a JSON that should look like:

{"sources":[{"file":"File1"},{"file":"File2"},{"file":"File3"}], "chip": 12}

Or:

I assume the JSONItem.Add method is wrong here…

The docs here mention a method called AddRow, which doesn’t exist:

https://documentation.xojo.com/topics/file_management/reading_and_writing_data_in_json_format.html

14 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 3762

Trending Articles