psych icon indicating copy to clipboard operation
psych copied to clipboard

Fix loading objects with instance variables named "null"

Open amarshall opened this issue 11 years ago • 0 comments

Do so by always interpreting mapping keys in an object as symbols rather than strings. When interpreted as a string it becomes nil which is then coerced to a string ("") and then tries to set the ivar "@" rather than "@null" raising the following error:

NameError: `@' is not allowed as an instance variable name

amarshall avatar May 20 '14 18:05 amarshall