QueryStringToStruct

Convert a query string to a struct.

Each key-value pair in the query string is separated by a delimiter. The default delimiter is {@code "&"}

Example:


 queryStringToStruct( "foo=bar
&
baz=qux" );
 "foo=bar
&
baz=qux".toStruct();
 

Method Signature

QueryStringToStruct(target=[string], delimiter=[string])

Arguments

ArgumentTypeRequiredDescriptionDefault

target

string

true

The query string to convert.

delimiter

string

false

The delimiter used to separate key-value pairs in the query string.

&

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC