Changing the json pattern

Changing the json pattern to use an array and ensure the order os the
routes declaration.