Actions
Bug #12219
closedJSON.parse does not resolve to specific Class by 'json_class' attribute, when symbolize_names:true
Description
When I enable symbolize_names, than parser does not match the 'json_class' attribute. The Hash instance is returned instead of expected instance of class defined in 'json_class' attribute.
JSON.parse(json, :create_additions => true, symbolize_names: true)
The attached Test demonstrates this issue.
Files
Updated by naruse (Yui NARUSE) over 6 years ago
- Status changed from Open to Closed
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
JSON library's upstream is https://github.com/flori/json.
Could you report it to there?
Actions
Like0
Like0