We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm getting an exception trying to convert data to JSON format
mi = Mediainfo.new '/tmp/sample.mp4' puts mi.to_json ActiveSupport::JSON::Encoding::CircularReferenceError: object references itself
thanks
The text was updated successfully, but these errors were encountered:
Solution is:
mi = Mediainfo.new '/tmp/sample.mp4' Hash.from_xml(mi.raw_response).to_json
For me it works
Sorry, something went wrong.
No branches or pull requests
Hi, I'm getting an exception trying to convert data to JSON format
thanks
The text was updated successfully, but these errors were encountered: