Friendly edit JSON interface

Doug Easterbrook doug at artsman.com
Thu Mar 27 14:51:45 UTC 2025


hi Xavier

Is it the syntax of JSON that you are trying to hide from people?

eg:
1) if they can fill table of values (like a headed list with a name and place to enter a value) and 
2) you turn that into JSON behind the scenes 
3) and you are responsible for items with multiple values

… is that what you are looking for?


or are you looking for something where person has options like:
1) add row (new root level thing)
2) add column to row (add a variable to the row)
3) add row to column (add a row of things to a column)
4) add multiple values to a column

I only ask because JSON can describe multiple rows and a hierarchy of data, so its reasnable to know what you want to limit people to.



we do, in our app, have something that translates json into a table of name value pairs (column one = name, column 2 = values) to display raw results from calls to credit card companies or other things that return json.   mostly for tech support purposes so that the user can read values to us.

We also use JSON to store some SQL results in what we call custom plugins for our code that does specific special things for certain customers.   That way, the user can view the JSON stored in the table in a 'headed list' of name value pairs and see words that are pertinent to their business.    It helps them see hoe the special code has affected a sale or the price of tickets.



for the most part we use our xcomp jsoncpp to encode and decode rows as it has a syntax and calling structure that is much more like what you’d see in postgres.    It has a JSON document and you can add rows, columns, values and access them using 'dot notation'.   which ins postgres is the -> operator

eg pulling something that is nested 3 levels deep out of a document has nested calls like below

Do pRoot.$get(cUserMetadataKey).$get(LowerVarName).$listtovalue(pRow.[pVarName])


putting data back in uses '$set'


is that the sort of JSON helper approach you are looking for (you’d have to build the interface) but it has definite advantages poking something into a document.





Doug Easterbrook
doug at artsman.com
Phone (403) 650-1978

> On Mar 27, 2025, at 2:28 AM, IT <it at plastipol.com> wrote:
> 
> Hi all,
> 
> I’m starting to migrate some structure data (multiple sql related tables) to JSON.
> 
> In omnis, there is an option called "Edit configuration" that opens a window  for editing config.json
> 
> This window is a powerful tool for editing JSON. It allows you to edit complex JSON structures with an easy user interface, requiring zero knowledge of JSON syntax. 
> 
> It would be great if Omnis allow developers to use this window as a built-in graphical interface for editing JSONs, something like built in "Query Builder” and provide a downloadable version that could be integrated in our own APPs.
> 
> That said, has any one found an external app or web site that can edit JSON without needing to use structural character likes {}, :,  [, and ] to build or edit a JSON?
> All editors I've seen are targeted for developers. Some are better than others, but I am looking for something suitable for final users without technical knowledge, something similar to Omnis's config.json editor window.
> 
> Any advice?
> 
> regards
> 
> xavier
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list