Fixed to_json
Refactored file structure
Merge pull request #2 from voldy/master

Fixed to_json for OpenStruct