added deprecated json building method to ensure old jquery front end still works