KeyValueParser

Parses key-value pairs with dot notation support for nested structures.

Supports:

  • Simple values: maxErrors=10{"maxErrors": "10"}

  • Nested maps: validSecurityValues.ApiKey=test{"validSecurityValues": {"ApiKey": "test"}}

  • Wildcard values: ignoreTestCases./api/users=*{"ignoreTestCases": {"/api/users": "*"}}

  • Nested wildcards: ignoreTestCases./api/users.GET=*{"ignoreTestCases": {"/api/users": {"GET": "*"}}}

  • Array notation: ignoreTestCases./api/users.GET[]=test1{"ignoreTestCases": {"/api/users": {"GET": ["test1"]}}}

  • Multiple array values with the same key automatically merge into a list

Functions

Link copied to clipboard
fun parse(entries: Array<String>): Map<String, Any>

Parses an array of key-value string entries into a nested map structure.