Jump to content

UDF JsonVar - convert a variable (also all array types) to json or back while preserv variable type


D2thunder
 Share

Recommended Posts

Hi all, I wasnt active in this Forum forum for Years.Ā šŸ˜…

Since I need something with Json in AutoIt i write a little UDF to save a variable to file to read it with another language - and back. After a while until my other script grows i thought - lets integrate all variables wich isĀ possible, because i want have arrays to.

This is my first public UDF in Autoit - normaly my AutoIt scripts are quick an dirty.... - like the examples for this udf. - someone want to write nice examples?

I tried to write this UDF properly, cared for processingĀ speed, low mem consumption as possible, a short code, and a high usability without beeing very familiar with arrays.

What is it for? -Ā convert nearly all types of variables to a json string for saving it in a file or to an ini. Read it back in to a same formatedĀ variable and preserv variable types. All array types are supported with nested arrays,Ā the only restriction isĀ ram and array/stringsize - and time if the array is very big. You can use Filters for variable types and some other options.

If anyone found a bug orĀ any suggestions, please post it.

Ā 

get Json.au3 from hereĀ Json.au3

Ā 

Ā 

JsonVar 2019.01.25.1.zip

Edited by D2thunder
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...