remove activesupport requirement outside rails by using json standard library