Add function to create a routing JSON object.
Update TODO.