created categpry_json to return a json hash for those that prefer json responses