在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ohler55/oj开源软件地址:https://github.com/ohler55/oj开源编程语言:C 62.2%开源软件介绍:gemA fast JSON parser and Object marshaller as a Ruby gem. Version 3.13 is out with a much faster parser ( Usingrequire 'oj'
h = { 'one' => 1, 'array' => [ true, false ] }
json = Oj.dump(h)
# json =
# {
# "one":1,
# "array":[
# true,
# false
# ]
# }
h2 = Oj.load(json)
puts "Same? #{h == h2}"
# true Installation
or in Bundler:
Rails and json quickstartSee the Quickstart sections of the Rails and json docs. multi_jsonCode which uses multi_json will automatically prefer Oj if it is installed. SupportGet supported Oj with a Tidelift Subscription. Security updates are supported. Further ReadingFor more details on options, modes, advanced features, and more follow these links.
ReleasesSee {file:CHANGELOG.md} and {file:RELEASE_NOTES.md} Links
Follow @peterohler on Twitter for announcements and news about the Oj gem. Performance Comparisons
Links of Interest
Contributing
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论