Rails JSON serialization library optimized for performance