Move to json/impl package as its the only place where its used