Parser.hasAssignment

bool hasAssignment(out string variableName)

A JSON data stream might sometimes contain an assignment, like:

var _json_data = { "member_name" : [ ...

even though it would technically constitute a violation of the RFC.

[json.parser.Parser] will ignore the left hand identifier and parse the right hand value of the assignment. [json.parser.Parser] will record, though, the existence of the assignment in the data stream and the variable name used.

Parameters

variableNamethe variable name

Returns

TRUE if there was an assignment, and FALSE otherwise