Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Declined Support JSON environment variables

rconn

Administrator
May
12,988
192
Staff member
Support JSON environment variables

The UnQLite DB suggestion under review uses JSON. Maybe supporting that would let us have JSON environment variables. Similar to arrays, these could be initialized using SETJSON varname. Data could be set/extracted using %envvar[...][...] notation for strings, objects members, array elements, etc. The SET command could be used to change an existing value, but the SETJSON command could be used to modify an existing JSON var to add or delete an object, object member, array, or array element.

154563c8030911c65fa0d14cfee152b2
Tim Butterfield on July 01, 2016 19:13
 
Getting JSON support would be great, for example the latest exiftool supports this format and it would be at last possible to read/write tags into/from arrays without any hassle. Here's an example of the exiftool i/o:

[{
"SourceFile": "test.jpg",
"ExifToolVersion": 10.47,
"XMPToolkit": "Image::ExifTool",
"SubjectCode": "06006008",
"CopyrightYear": 2017,
"Megapixels": 0.627
}]


... or for multiple images (multi-dimensional array in tcc):

[{
"SourceFile": "test1.jpg",
"ExifToolVersion": 10.47,
"XMPToolkit": "Image::ExifTool",
"SubjectCode": "06006008",
"CopyrightYear": 2017,
"Megapixels": 0.627
},
{
"SourceFile": "test2.jpg",
"ExifToolVersion": 10.47,
"XMPToolkit": "Image::ExifTool",
"SubjectCode": "06006008",
"CopyrightYear": 2017,
"Megapixels": 0.627
}]
 

Similar threads

Back
Top