added json route and method