Parsing Array of Strings to Object in Julia

You could use replace to change the '‘s (which are used for chars) into "‘s (which are used for strings) in the string before parsing it:

Meta.parse(replace(l, "'" => '"'))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top