Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. require 'rubygems'
  2. require 'yajl'
  3.  
  4. Yajl::Chunked.on_parse_complete = lambda do |json|
  5. raise "#{json.inspect} != [{\"abc\":123}"
  6. end
  7.  
  8. Yajl::Chunked << <<-JSON
  9. [{"abc":123}'
  10. JSON
Add Comment
Please, Sign In to add comment