$O10 - OJSON / JSON Creating A V Simple Dict?

Ben Butler 760.f563 at gmail.com
Sat Jun 29 20:42:40 UTC 2024


Hi,

I have been reading the docs and am none the wiser, and there is no 
example applet for OJSON/JSON externals.

I would like to feed it a row (of key columns and value) or list (of 
col1 = key name and col2 = value) and get out a dictionary (in Python 
speak) of key value pairs.

i.e: THIS IS WHAT I WANT OUT

{
     "key1": "value1",
     "key2": "value2"
}

But it seems to keep wanting to output arrays / lists, [] - or a list of 
objects / dictionaries [{}, {}], but I can't seem to get it to produce a 
object {} / simple dictionary for my key value pairs I want to include 
as the body of the post data in an OWS3.HTTPworker on a client REST POST.

Can anyone point me at docs with an example or share some code - please.

Kind Regards,

Ben

-- 

____________________________________________________________________________________________________
You can get a *free copy of my book*, /Tales Of The Rim/ with this link: 
*https://books.bookfunnel.com/tales-of-the-rim*
A long novella collection of twelve short stories from the Rim universe.
Available in both ebook and audiobook formats.
Main website: *https://west16publishing.com/benjamin.crane*


More information about the omnisdev-en mailing list