Divide code to json.cpp/json.hpp