rubygems.org : safe_parser
Parses a hash string of the format `'{ :a => "something" }'` into an actual ruby hash object `{ a: "something" }`. This is useful when you by mistake serialize hashes and save it in database column or a text file and you want to convert them back to hashes without the security issues of executing `eval(hash_string)`. By default only following classes are allowed to be deserialized: * TrueClass * FalseClass * NilClass * Numeric * String * Array * Hash A HashParser::BadHash exception is thrown if unserializable values are present.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:gem/safe_parser
License: MIT
Latest release: almost 9 years ago
First release: almost 9 years ago
Dependent packages: 1
Dependent repositories: 2
Downloads: 86,553 total
Stars: 3 on GitHub
Forks: 3 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 15 days ago