With the foregoing discussion, it should be easy to understand, although the program is too lengthy to give a step-by-step explanation here.
根据前面的讨论,这个程序应该容易理解,虽然在这里一步一步地讲解这个程序会过于冗长。
My solution has been to take one of them, extract just the parsing functions, and store them in my lib folder as json.rb. That code's too lengthy to paste here, but you can find it at