Hash string format

A hash string has the following format (white space ignored except in quotation marks):

key=value,...
Or:
{key=value,...}
Where key is:
a string
And, where value is:
a string
Or:
{key=value}
Or:
[{key=value},...]
String
A sequence of any characters except quotation mark ("), apostrophe ('), comma (,), backslash (\), and space ( ). However, you can include those characters by enclosing them in single or double quotes. But a nested single or double quote must be escaped by preceding it with a backslash. The backslash is excluded.
A non-terminal token is an apostrophe (') or quotation mark (") or backslash (\).

Examples

The following examples show valid hash table syntax:
name=foo,value=bar

{ name=Mike\ Community, customProperties=[{name=foo,value=bar}, {name=bar, value=�?foo bar�?}] }

{ “some key�?=�?some value�?, provider={ name=a provider }}