Skip to content

Conversation

@greenfork
Copy link
Contributor

Here is some code I used to parse arrays. It is not complete and it is a good candidate to be moved to C when it is stable enough. All array types are not covered and could require further adjustments.

It has a bug that a value in the array with comma like this one {"A, B"} will fail to be parsed. In order to fix it, it requires a proper parser. It returns nil in case of scan-number and raises an exception in other cases, so technically there's no mis-parsing.

See for yourself if you'd like to accept this code given this downside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant