Move code to JSON