[FIX] Added parse and toJSON methods to match rails naming convention