"/>

How to get all dict data

I using python 2.7.11 and djnago 1.10.2. Created category api. How to get json dict data in Django views. I tryed two days but it get only List data.

This is my api example and i need "parent" filed data.

 [
   {
    "url": "",
    "category_image": [],
    "price_rule": null,
    "parent": {
      "id": 12,
      "category_image": [],
      "name": "cat1",
      "slug": "cat1",
      "category_description": "",
      "page_title": "",
      "meta_keywords": "",
      "meta_description": "",
      "default_product_listing_sort_by": "",
      "order": 0,
      "created_by": 1,
      "created_at": "2016-12-23T13:01:20.689936",
      "modified_by": 1,
      "modified_at": "2016-12-23T13:47:55.338865",
      "sort_position": null,
      "lft": 1,
      "rght": 10,
      "tree_id": 1,
      "level": 0,
      "parent": null,
      "price_rule": null
    },
    "name": "cat2",
    "slug": "cat2",
    "category_description": "",
    "page_title": "",
    "meta_keywords": "",
    "meta_description": "",
    "default_product_listing_sort_by": "",
    "order": 1,
    "created_by": 1,
    "created_at": "2016-12-23T13:01:54.003769",
    "modified_by": 1,
    "modified_at": "2016-12-23T13:47:57.848614",
    "sort_position": null,
    "lft": 2,
    "rght": 3,
    "tree_id": 1,
    "level": 1
  },
] 
Read Full News
Submit your Tech Updates