needsQuoting

private fnbool needsQuoting(string key) pure nothrow @safe

Check if a key needs quoting.

A key needs quoting if it starts with a digit, contains special characters, or is a reserved word.

Parameters

keyThe key to check

Returns

true if the key requires quotes.