阅读背景:

在Ruby中,MongoDB返回一个BSON :: OrderedHash。如何将其转换为JSON?使用to_json会出现“堆栈级太深”的错误

来源:互联网 

I am trying to make a web service using Ruby Sinatra and MongoDB. It will return JSON objects. I decided to use MongoDB, in part, because it stores documents internally in a "JSON-like" structure. I thought this would make it easy to me to run a query and send a JSON result to the client. However, I have run into problems converting the results from MongoDB into JSON.I am trying to make a web service using Ruby Si




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: