#NEWLINE# def json_catalog( request , domain = 'djangojs' , packages = None ) : #NEWLINE# #INDENT# '\n    Return the selected language catalog as a JSON object.\n\n    Receives the same parameters as javascript_catalog(), but returns\n    a response with a JSON object of the following format:\n\n        {\n            "catalog": {\n                # Translations catalog\n            },\n            "formats": {\n                # Language formats for date, time, etc.\n            },\n            "plural": \'...\'  # Expression for plural forms, or null.\n        }\n    ' #NEWLINE# warnings . warn ( 'The json_catalog() view is deprecated in favor of the JSONCatalog view.' , RemovedInDjango20Warning , stacklevel = 2 ) #NEWLINE# locale = _get_locale ( request ) #NEWLINE# packages = _parse_packages ( domain ) #NEWLINE# ( catalog , plural ) = get_javascript_catalog ( locale , domain , packages ) #NEWLINE# data = { #NEWLINE# #INDENT# 'catalog' : catalog , #NEWLINE# 'formats' : get_formats ( ) , #NEWLINE# 'plural' : plural , #NEWLINE# #UNINDENT# } #NEWLINE# return http . JsonResponse ( data )