Q. Which method in Ruby is used to convert an object to a JSON string?

  • (A) serialize
  • (B) from_json
  • (C) to_json
  • (D) parse_json
πŸ’¬ Discuss
βœ… Correct Answer: (C) to_json

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
197
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate