From 13a5bb80f90d202e24bb8dece4ba06aad5879bad Mon Sep 17 00:00:00 2001 From: 4msha Date: Thu, 20 Aug 2020 17:04:11 +0530 Subject: [PATCH 1/4] catrgories --- package.json | 2 +- .../addCategory/addCategory.resolvers.ts | 19 ++++++ .../addCategory/addCategory.schema.gql | 10 ++++ src/apps/categories/categories.entity.ts | 21 +++++++ src/apps/categories/categories.resolvers.ts | 22 +++++++ src/apps/categories/categories.schema.gql | 10 ++++ src/apps/categories/categories.test.ts | 59 +++++++++++++++++++ .../1597786152241-InitialMigration.ts | 28 --------- src/types/schema.d.ts | 10 ++++ 9 files changed, 152 insertions(+), 29 deletions(-) create mode 100644 src/apps/categories/addCategory/addCategory.resolvers.ts create mode 100644 src/apps/categories/addCategory/addCategory.schema.gql create mode 100644 src/apps/categories/categories.entity.ts create mode 100644 src/apps/categories/categories.resolvers.ts create mode 100644 src/apps/categories/categories.schema.gql create mode 100644 src/apps/categories/categories.test.ts delete mode 100644 src/migrations/1597786152241-InitialMigration.ts diff --git a/package.json b/package.json index 96c3a3f..8dff2b0 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "db:production": "NODE_PATH=src node ./node_modules/typeorm/cli.js --config ormconfig.js", "gen-schema-types": "NODE_PATH=src ts-node ./lib/generateGQLTypes.ts", "lint": "eslint '*/**/*.{js,ts,json}' --fix", - "makemigrations": "yarn db migration:generate", + "makemigrations": "yarn db:development migration:generate", "migrate": "yarn db migration:run", "start": "per-env", "start:development": "nodemon --exec ts-node src/index.ts", diff --git a/src/apps/categories/addCategory/addCategory.resolvers.ts b/src/apps/categories/addCategory/addCategory.resolvers.ts new file mode 100644 index 0000000..320782b --- /dev/null +++ b/src/apps/categories/addCategory/addCategory.resolvers.ts @@ -0,0 +1,19 @@ +import { ResolverMap } from 'types'; +import {Category} from '../categories.entity'; + +const Resolvers: ResolverMap = { + Mutation: { + addCategory: async function(_, { name ,code,representation,parent}:GQL.AddCategoryMutationArguments,): Promise { + const newCategory=new Category(); + newCategory.name=name; + newCategory.code=code; + newCategory.representation=representation; + newCategory.parent=parent; + await newCategory.save(); + console.log(newCategory); + return newCategory; + }, + }, +}; + +export default Resolvers; \ No newline at end of file diff --git a/src/apps/categories/addCategory/addCategory.schema.gql b/src/apps/categories/addCategory/addCategory.schema.gql new file mode 100644 index 0000000..5bd2fc0 --- /dev/null +++ b/src/apps/categories/addCategory/addCategory.schema.gql @@ -0,0 +1,10 @@ + +type Mutation { + """Login/Create account with google""" + addCategory( + name: String!, + code: String!, + representation:String, + parent:String + ):category +} diff --git a/src/apps/categories/categories.entity.ts b/src/apps/categories/categories.entity.ts new file mode 100644 index 0000000..afe2bca --- /dev/null +++ b/src/apps/categories/categories.entity.ts @@ -0,0 +1,21 @@ +import { Entity, Column } from 'typeorm'; +import { BaseEntity } from 'helpers/db'; +import { CoreOptions } from 'request'; + + +@Entity('category') +export class Category extends BaseEntity { + options: CoreOptions; + @Column() + name:string; + + @Column({nullable:false,unique:true}) + code:string; + + @Column() + representation:string; + + @Column() + parent:string; + +} \ No newline at end of file diff --git a/src/apps/categories/categories.resolvers.ts b/src/apps/categories/categories.resolvers.ts new file mode 100644 index 0000000..96f183e --- /dev/null +++ b/src/apps/categories/categories.resolvers.ts @@ -0,0 +1,22 @@ +import { ResolverMap } from 'types'; +import { Category } from './categories.entity'; + +const Resolvers: ResolverMap = { + Query: { + categories: async (_, { parent }:GQL.fetchCategories,): Promise => { + const baseCategories= await Category.find(); + + if(parent===null) + return baseCategories; + + // let filteredCategories; + // baseCategories.map((cat)=>{ + // if(cat.parent===parent) + // filteredCategories.push(cat); + // }); + // return filteredCategories; + }, + }, +}; + +export default Resolvers; \ No newline at end of file diff --git a/src/apps/categories/categories.schema.gql b/src/apps/categories/categories.schema.gql new file mode 100644 index 0000000..8296e97 --- /dev/null +++ b/src/apps/categories/categories.schema.gql @@ -0,0 +1,10 @@ +type category{ + name:String, + code:String, + representation:String, + parent:String +} + +type Query{ + categories(representation:String):[category] +} \ No newline at end of file diff --git a/src/apps/categories/categories.test.ts b/src/apps/categories/categories.test.ts new file mode 100644 index 0000000..94b6d09 --- /dev/null +++ b/src/apps/categories/categories.test.ts @@ -0,0 +1,59 @@ +import { Server } from 'server'; +import { Connection } from 'typeorm'; +import { TestClient } from '../../server/client'; +import { Category } from './categories.entity'; + + +let conn: Connection; +beforeAll(async () => { + conn = await Server.connectToDB(); +}); + +afterAll(async () => { + await conn.close(); +}); + +const $categories = () => ` + query{ + categories{ + name + code + representation + parent + } + } +`; + +const $addCategory = (name: string, code: string, representation: string, parent: string) => ` + mutation { + addCategory(name: "${name}",code:"${code}",representation:"${representation}",parent:"${parent}"){ + name + code + representation + parent + } +} +`; + + +describe('categories',()=>{ + test('fetch base categories', async () => { + const client = new TestClient(); + const count =await Category.count(); + const {categories} = await client.query($categories()); + expect(count).toEqual(categories.length); + }); + // test('adding category',async()=>{ + // const client = new TestClient(); + // const newCategory = new Category(); + // newCategory.name = 'testcategory'; + // newCategory.code='poiuy789'; + // newCategory.parent='base'; + // newCategory.representation='/testCategory' + // await newCategory.save() + // const { addCategory } = await client.query($addCategory(newCategory.name,newCategory.code,newCategory.representation,newCategory.parent)); + // const {name}=addCategory; + // expect(name).toEqual(newCategory.name); + // }) + +}) \ No newline at end of file diff --git a/src/migrations/1597786152241-InitialMigration.ts b/src/migrations/1597786152241-InitialMigration.ts deleted file mode 100644 index 5d510b9..0000000 --- a/src/migrations/1597786152241-InitialMigration.ts +++ /dev/null @@ -1,28 +0,0 @@ -import {MigrationInterface, QueryRunner} from 'typeorm'; - -export class InitialMigration1597786152241 implements MigrationInterface { - name = 'InitialMigration1597786152241' - - public async up(queryRunner: QueryRunner): Promise { - await queryRunner.query('CREATE TABLE "ping" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, "ip" character varying NOT NULL, CONSTRAINT "PK_b01cab9d614b77bac5973937663" PRIMARY KEY ("id"))'); - await queryRunner.query('CREATE TABLE "phone" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, "country" character varying NOT NULL DEFAULT \'91\', "number" character varying NOT NULL, "verified" boolean NOT NULL DEFAULT false, "userId" uuid, CONSTRAINT "UQ_7d5e2c8e3159f5711aa37bb134e" UNIQUE ("number"), CONSTRAINT "PK_f35e6ee6c1232ce6462505c2b25" PRIMARY KEY ("id"))'); - await queryRunner.query('CREATE TABLE "email" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, "email" character varying NOT NULL, "verified" boolean NOT NULL DEFAULT false, "userId" uuid, CONSTRAINT "UQ_fee9013b697946e8129caba8983" UNIQUE ("email"), CONSTRAINT "PK_1e7ed8734ee054ef18002e29b1c" PRIMARY KEY ("id"))'); - await queryRunner.query('CREATE TABLE "users" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, "name" character varying NOT NULL, CONSTRAINT "PK_a3ffb1c0c8416b9fc6f907b7433" PRIMARY KEY ("id"))'); - await queryRunner.query('CREATE TABLE "shop" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, "domain" character varying, "_slug" character varying NOT NULL, "name" character varying NOT NULL, "address" text NOT NULL, "ownerId" uuid, CONSTRAINT "UQ_07a78dd92833e563f17205e3bd5" UNIQUE ("_slug"), CONSTRAINT "REL_28fb7269a26c4e112e151e46f5" UNIQUE ("ownerId"), CONSTRAINT "PK_ad47b7c6121fe31cb4b05438e44" PRIMARY KEY ("id"))'); - await queryRunner.query('ALTER TABLE "phone" ADD CONSTRAINT "FK_260d7031e6bd9ed4fbcd2dd3ad6" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE NO ACTION ON UPDATE NO ACTION'); - await queryRunner.query('ALTER TABLE "email" ADD CONSTRAINT "FK_13e97b4a1d6074fd75ea1bb844e" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE NO ACTION ON UPDATE NO ACTION'); - await queryRunner.query('ALTER TABLE "shop" ADD CONSTRAINT "FK_28fb7269a26c4e112e151e46f50" FOREIGN KEY ("ownerId") REFERENCES "users"("id") ON DELETE NO ACTION ON UPDATE NO ACTION'); - } - - public async down(queryRunner: QueryRunner): Promise { - await queryRunner.query('ALTER TABLE "shop" DROP CONSTRAINT "FK_28fb7269a26c4e112e151e46f50"'); - await queryRunner.query('ALTER TABLE "email" DROP CONSTRAINT "FK_13e97b4a1d6074fd75ea1bb844e"'); - await queryRunner.query('ALTER TABLE "phone" DROP CONSTRAINT "FK_260d7031e6bd9ed4fbcd2dd3ad6"'); - await queryRunner.query('DROP TABLE "shop"'); - await queryRunner.query('DROP TABLE "users"'); - await queryRunner.query('DROP TABLE "email"'); - await queryRunner.query('DROP TABLE "phone"'); - await queryRunner.query('DROP TABLE "ping"'); - } - -} diff --git a/src/types/schema.d.ts b/src/types/schema.d.ts index cc25efd..15f56a0 100644 --- a/src/types/schema.d.ts +++ b/src/types/schema.d.ts @@ -168,6 +168,16 @@ declare namespace GQL { mimetype: string; encoding: string; } + interface AddCategoryMutationArguments{ + name:string; + code:string; + representation:string; + parent:string; + } + interface fetchCategories{ + parent:string; + } + type DoneOrExceptions = IDone | IExceptions; } From 80e36e35e18d8ff2926b3094bedf45c7fd666b90 Mon Sep 17 00:00:00 2001 From: 4msha Date: Thu, 20 Aug 2020 18:05:28 +0530 Subject: [PATCH 2/4] categories complete --- .../addCategory/addCategory.resolvers.ts | 4 ++-- .../addCategory/addCategory.schema.gql | 5 ++--- src/apps/categories/categories.entity.ts | 2 -- src/apps/categories/categories.resolvers.ts | 18 +++++++++--------- src/apps/categories/categories.schema.gql | 4 ++-- src/apps/categories/categories.test.ts | 16 ++++++++-------- src/types/schema.d.ts | 2 +- 7 files changed, 24 insertions(+), 27 deletions(-) diff --git a/src/apps/categories/addCategory/addCategory.resolvers.ts b/src/apps/categories/addCategory/addCategory.resolvers.ts index 320782b..05b815b 100644 --- a/src/apps/categories/addCategory/addCategory.resolvers.ts +++ b/src/apps/categories/addCategory/addCategory.resolvers.ts @@ -3,7 +3,7 @@ import {Category} from '../categories.entity'; const Resolvers: ResolverMap = { Mutation: { - addCategory: async function(_, { name ,code,representation,parent}:GQL.AddCategoryMutationArguments,): Promise { + addCategory: async(_, { name ,code,representation,parent}:GQL.AddCategoryMutationArguments,): Promise => { const newCategory=new Category(); newCategory.name=name; newCategory.code=code; @@ -12,7 +12,7 @@ const Resolvers: ResolverMap = { await newCategory.save(); console.log(newCategory); return newCategory; - }, + } }, }; diff --git a/src/apps/categories/addCategory/addCategory.schema.gql b/src/apps/categories/addCategory/addCategory.schema.gql index 5bd2fc0..111f990 100644 --- a/src/apps/categories/addCategory/addCategory.schema.gql +++ b/src/apps/categories/addCategory/addCategory.schema.gql @@ -1,10 +1,9 @@ - +#import Category from "apps/categories/categories.schema.gql"; type Mutation { - """Login/Create account with google""" addCategory( name: String!, code: String!, representation:String, parent:String - ):category + ):Category } diff --git a/src/apps/categories/categories.entity.ts b/src/apps/categories/categories.entity.ts index afe2bca..dcd4e64 100644 --- a/src/apps/categories/categories.entity.ts +++ b/src/apps/categories/categories.entity.ts @@ -1,11 +1,9 @@ import { Entity, Column } from 'typeorm'; import { BaseEntity } from 'helpers/db'; -import { CoreOptions } from 'request'; @Entity('category') export class Category extends BaseEntity { - options: CoreOptions; @Column() name:string; diff --git a/src/apps/categories/categories.resolvers.ts b/src/apps/categories/categories.resolvers.ts index 96f183e..d470cc7 100644 --- a/src/apps/categories/categories.resolvers.ts +++ b/src/apps/categories/categories.resolvers.ts @@ -3,18 +3,18 @@ import { Category } from './categories.entity'; const Resolvers: ResolverMap = { Query: { - categories: async (_, { parent }:GQL.fetchCategories,): Promise => { + categories: async (_, { representation }:GQL.fetchCategories,): Promise => { const baseCategories= await Category.find(); - - if(parent===null) + if(representation){ + const filteredCategories=[]; + baseCategories.map((cat)=>{ + if(cat.parent===representation) + filteredCategories.push(cat); + }); + return filteredCategories; + } return baseCategories; - // let filteredCategories; - // baseCategories.map((cat)=>{ - // if(cat.parent===parent) - // filteredCategories.push(cat); - // }); - // return filteredCategories; }, }, }; diff --git a/src/apps/categories/categories.schema.gql b/src/apps/categories/categories.schema.gql index 8296e97..ff606ff 100644 --- a/src/apps/categories/categories.schema.gql +++ b/src/apps/categories/categories.schema.gql @@ -1,4 +1,4 @@ -type category{ +type Category{ name:String, code:String, representation:String, @@ -6,5 +6,5 @@ type category{ } type Query{ - categories(representation:String):[category] + categories(representation:String):[Category] } \ No newline at end of file diff --git a/src/apps/categories/categories.test.ts b/src/apps/categories/categories.test.ts index 94b6d09..bd9927b 100644 --- a/src/apps/categories/categories.test.ts +++ b/src/apps/categories/categories.test.ts @@ -26,12 +26,12 @@ const $categories = () => ` const $addCategory = (name: string, code: string, representation: string, parent: string) => ` mutation { - addCategory(name: "${name}",code:"${code}",representation:"${representation}",parent:"${parent}"){ - name - code - representation - parent - } + addCategory(name: "${name}",code:"${code}",representation:"${representation}",parent:"${parent}"){ + name + code + representation + parent + } } `; @@ -46,8 +46,8 @@ describe('categories',()=>{ // test('adding category',async()=>{ // const client = new TestClient(); // const newCategory = new Category(); - // newCategory.name = 'testcategory'; - // newCategory.code='poiuy789'; + // newCategory.name = 'testCategory'; + // newCategory.code='po789'; // newCategory.parent='base'; // newCategory.representation='/testCategory' // await newCategory.save() diff --git a/src/types/schema.d.ts b/src/types/schema.d.ts index 15f56a0..67406ed 100644 --- a/src/types/schema.d.ts +++ b/src/types/schema.d.ts @@ -175,7 +175,7 @@ declare namespace GQL { parent:string; } interface fetchCategories{ - parent:string; + representation:string; } From dfd87523c46f8bd2043724414beab5b3d58e3901 Mon Sep 17 00:00:00 2001 From: 4msha Date: Fri, 21 Aug 2020 23:53:15 +0530 Subject: [PATCH 3/4] adding category recusive --- lib/addCategories.ts | 43 +++++++++++++++++ lib/categories.json | 1 + package.json | 1 + .../addCategory/addCategory.resolvers.ts | 28 +++++++++-- .../addCategory/addCategory.schema.gql | 1 - src/apps/categories/addCategory/validators.ts | 9 ++++ src/apps/categories/categories.entity.ts | 20 +++++--- src/apps/categories/categories.resolvers.ts | 9 ---- src/apps/categories/categories.schema.gql | 5 +- src/apps/categories/categories.test.ts | 47 +++++++++++-------- src/apps/categories/exceptions.ts | 11 +++++ src/migrations/1598027525954-AddCategories.ts | 22 +++++++++ tsconfig.json | 2 + 13 files changed, 158 insertions(+), 41 deletions(-) create mode 100644 lib/addCategories.ts create mode 100644 lib/categories.json create mode 100644 src/apps/categories/addCategory/validators.ts create mode 100644 src/apps/categories/exceptions.ts create mode 100644 src/migrations/1598027525954-AddCategories.ts diff --git a/lib/addCategories.ts b/lib/addCategories.ts new file mode 100644 index 0000000..a33ab16 --- /dev/null +++ b/lib/addCategories.ts @@ -0,0 +1,43 @@ +import { Server } from '../src/server'; +import * as categories from './categories.json'; +import { Category } from '../src/apps/categories/categories.entity'; +import * as _ from 'lodash'; +import { Connection } from 'typeorm/index'; + +let conn: Connection; + + +const main = async () => { + conn = await Server.connectToDB(); + await recursive(categories,null); + await conn.close().then(()=>console.log('dvb closed')); +} + +const insertIntoDb = async(name:string,code:string,representation:string,parent:any )=>{ + const newCategory=new Category(); + newCategory.name=name; + newCategory.code=code; + newCategory.representation=representation; + newCategory.parent=parent; + try { + await newCategory.save(); + } catch (error) { + console.log('fuck'); + } +} + +const recursive = async(level:any[],parent:any) =>{ + level.map(async(cat)=>{ + let representation=cat.representation; + representation=_.kebabCase(representation); + await insertIntoDb(cat.name, cat.code, representation,parent); + await recursive(cat.child,cat); + }); +} + + +main().then(async()=>{ + console.log('Categories Inserted'); +}).catch(()=>{ + console.log('Categories not inserted'); +}); diff --git a/lib/categories.json b/lib/categories.json new file mode 100644 index 0000000..b307283 --- /dev/null +++ b/lib/categories.json @@ -0,0 +1 @@ +[{"name": "Electronic", "child": [{"name": "Mobile", "child": [], "code": "3cba95", "representation": "electronic/mobile", "path": ["Electronic", "Mobile"]}, {"name": "Mobile Accessories", "child": [{"name": "Mobile Cases", "child": [], "code": "8a5f01", "representation": "electronic/mobile-accessories/mobile-cases", "path": ["Electronic", "Mobile Accessories", "Mobile Cases"]}, {"name": "Headphones & Headsets", "child": [], "code": "f2d7af", "representation": "electronic/mobile-accessories/headphones-headsets", "path": ["Electronic", "Mobile Accessories", "Headphones & Headsets"]}, {"name": "Power Banks", "child": [], "code": "15a205", "representation": "electronic/mobile-accessories/power-banks", "path": ["Electronic", "Mobile Accessories", "Power Banks"]}, {"name": "Screen-Guards", "child": [], "code": "01627a", "representation": "electronic/mobile-accessories/screen-guards", "path": ["Electronic", "Mobile Accessories", "Screen-Guards"]}, {"name": "Memory Cards", "child": [], "code": "e53a0a", "representation": "electronic/mobile-accessories/memory-cards", "path": ["Electronic", "Mobile Accessories", "Memory Cards"]}, {"name": "Smart Headphone", "child": [], "code": "53db7d", "representation": "electronic/mobile-accessories/smart-headphone", "path": ["Electronic", "Mobile Accessories", "Smart Headphone"]}, {"name": "Mobile Cable", "child": [], "code": "7caff6", "representation": "electronic/mobile-accessories/mobile-cable", "path": ["Electronic", "Mobile Accessories", "Mobile Cable"]}, {"name": "Mobile Chargers", "child": [], "code": "443904", "representation": "electronic/mobile-accessories/mobile-chargers", "path": ["Electronic", "Mobile Accessories", "Mobile Chargers"]}, {"name": "Mobile Holders", "child": [], "code": "38e6c0", "representation": "electronic/mobile-accessories/mobile-holders", "path": ["Electronic", "Mobile Accessories", "Mobile Holders"]}], "code": "c6affa", "representation": "electronic/mobile-accessories", "path": ["Electronic", "Mobile Accessories"]}, {"name": "Wearable Tech", "child": [{"name": "Smart Watches", "child": [], "code": "4c6d65", "representation": "electronic/wearable-tech/smart-watches", "path": ["Electronic", "Wearable Tech", "Smart Watches"]}, {"name": "Smart Glasses", "child": [], "code": "d36065", "representation": "electronic/wearable-tech/smart-glasses", "path": ["Electronic", "Wearable Tech", "Smart Glasses"]}, {"name": "Smart Band", "child": [], "code": "526313", "representation": "electronic/wearable-tech/smart-band", "path": ["Electronic", "Wearable Tech", "Smart Band"]}], "code": "814f92", "representation": "electronic/wearable-tech", "path": ["Electronic", "Wearable Tech"]}, {"name": "Health Care Application", "child": [{"name": "Bp Monitor", "child": [], "code": "f4d16a", "representation": "electronic/health-care-application/bp-monitor", "path": ["Electronic", "Health Care Application", "Bp Monitor"]}, {"name": "Weighing Scale", "child": [], "code": "3cb7ce", "representation": "electronic/health-care-application/weighing-scale", "path": ["Electronic", "Health Care Application", "Weighing Scale"]}], "code": "b2f591", "representation": "electronic/health-care-application", "path": ["Electronic", "Health Care Application"]}, {"name": "Laptop", "child": [{"name": "Gaming Laptop", "child": [], "code": "ad9309", "representation": "electronic/laptop/gaming-laptop", "path": ["Electronic", "Laptop", "Gaming Laptop"]}], "code": "ed0f3c", "representation": "electronic/laptop", "path": ["Electronic", "Laptop"]}, {"name": "Desktop Pcs", "child": [], "code": "cef147", "representation": "electronic/desktop-pcs", "path": ["Electronic", "Desktop Pcs"]}, {"name": "Gaming Accessories", "child": [], "code": "691253", "representation": "electronic/gaming-accessories", "path": ["Electronic", "Gaming Accessories"]}, {"name": "Computer Accessories", "child": [{"name": "External Hard Disk", "child": [], "code": "bb7e1f", "representation": "electronic/computer-accessories/external-hard-disk", "path": ["Electronic", "Computer Accessories", "External Hard Disk"]}, {"name": "Pendrives", "child": [], "code": "6ffa29", "representation": "electronic/computer-accessories/pendrives", "path": ["Electronic", "Computer Accessories", "Pendrives"]}, {"name": "Laptop Skin & Decals", "child": [], "code": "99a89e", "representation": "electronic/computer-accessories/laptop-skin-decals", "path": ["Electronic", "Computer Accessories", "Laptop Skin & Decals"]}, {"name": "Laptop Bag", "child": [], "code": "911639", "representation": "electronic/computer-accessories/laptop-bag", "path": ["Electronic", "Computer Accessories", "Laptop Bag"]}, {"name": "Mouse", "child": [], "code": "21fb62", "representation": "electronic/computer-accessories/mouse", "path": ["Electronic", "Computer Accessories", "Mouse"]}], "code": "64722a", "representation": "electronic/computer-accessories", "path": ["Electronic", "Computer Accessories"]}, {"name": "Computer Peripherals", "child": [{"name": "Printer & Ink Cartridges", "child": [], "code": "262c41", "representation": "electronic/computer-peripherals/printer-ink-cartridges", "path": ["Electronic", "Computer Peripherals", "Printer & Ink Cartridges"]}, {"name": "Monitor", "child": [], "code": "d2a167", "representation": "electronic/computer-peripherals/monitor", "path": ["Electronic", "Computer Peripherals", "Monitor"]}], "code": "7914b3", "representation": "electronic/computer-peripherals", "path": ["Electronic", "Computer Peripherals"]}, {"name": "Tablet", "child": [{"name": "Apple Ipad", "child": [], "code": "8e4fb7", "representation": "electronic/tablet/apple-ipad", "path": ["Electronic", "Tablet", "Apple Ipad"]}], "code": "71aaae", "representation": "electronic/tablet", "path": ["Electronic", "Tablet"]}, {"name": "Speakers", "child": [{"name": "Home Audio Speaker", "child": [], "code": "b5e339", "representation": "electronic/speakers/home-audio-speaker", "path": ["Electronic", "Speakers", "Home Audio Speaker"]}, {"name": "Home Theater", "child": [], "code": "6fbf15", "representation": "electronic/speakers/home-theater", "path": ["Electronic", "Speakers", "Home Theater"]}, {"name": "Sound-Bars", "child": [], "code": "0efef2", "representation": "electronic/speakers/sound-bars", "path": ["Electronic", "Speakers", "Sound-Bars"]}, {"name": "Bluethooth Speakers", "child": [], "code": "51ce19", "representation": "electronic/speakers/bluethooth-speakers", "path": ["Electronic", "Speakers", "Bluethooth Speakers"]}, {"name": "Dth Set Top Box", "child": [], "code": "e30cf1", "representation": "electronic/speakers/dth-set-top-box", "path": ["Electronic", "Speakers", "Dth Set Top Box"]}], "code": "7d09eb", "representation": "electronic/speakers", "path": ["Electronic", "Speakers"]}, {"name": "Smart Home Accessories", "child": [], "code": "ff8ed0", "representation": "electronic/smart-home-accessories", "path": ["Electronic", "Smart Home Accessories"]}, {"name": "Camera", "child": [{"name": "Dslr & Mirrorless", "child": [], "code": "e4304f", "representation": "electronic/camera/dslr-mirrorless", "path": ["Electronic", "Camera", "Dslr & Mirrorless"]}, {"name": "Compact & Bridge Camera", "child": [], "code": "e2edca", "representation": "electronic/camera/compact-bridge-camera", "path": ["Electronic", "Camera", "Compact & Bridge Camera"]}, {"name": "Sports & Action", "child": [], "code": "70d936", "representation": "electronic/camera/sports-action", "path": ["Electronic", "Camera", "Sports & Action"]}], "code": "fdfb67", "representation": "electronic/camera", "path": ["Electronic", "Camera"]}, {"name": "Camera Accessories", "child": [{"name": "Lens", "child": [], "code": "6d0b1f", "representation": "electronic/camera-accessories/lens", "path": ["Electronic", "Camera Accessories", "Lens"]}, {"name": "Tripod", "child": [], "code": "ec13eb", "representation": "electronic/camera-accessories/tripod", "path": ["Electronic", "Camera Accessories", "Tripod"]}], "code": "867a97", "representation": "electronic/camera-accessories", "path": ["Electronic", "Camera Accessories"]}, {"name": "Network Components", "child": [{"name": "Routers", "child": [], "code": "ff18f4", "representation": "electronic/network-components/routers", "path": ["Electronic", "Network Components", "Routers"]}], "code": "3e74e7", "representation": "electronic/network-components", "path": ["Electronic", "Network Components"]}, {"name": "Gaming", "child": [{"name": "Gaming Consoles", "child": [], "code": "bf6d4c", "representation": "electronic/gaming/gaming-consoles", "path": ["Electronic", "Gaming", "Gaming Consoles"]}, {"name": "Gaming Accessories", "child": [], "code": "4aaeab", "representation": "electronic/gaming/gaming-accessories", "path": ["Electronic", "Gaming", "Gaming Accessories"]}, {"name": "Ps4 Games", "child": [], "code": "ebdf3a", "representation": "electronic/gaming/ps4-games", "path": ["Electronic", "Gaming", "Ps4 Games"]}], "code": "8ff464", "representation": "electronic/gaming", "path": ["Electronic", "Gaming"]}], "code": "165181", "representation": "electronic", "path": ["Electronic"]}, {"name": "Tvs & Appliances", "child": [{"name": "Television", "child": [], "code": "8555da", "representation": "tvs-appliances/television", "path": ["Tvs & Appliances", "Television"]}, {"name": "Smart & Ultra Hd", "child": [], "code": "d925f5", "representation": "tvs-appliances/smart-ultra-hd", "path": ["Tvs & Appliances", "Smart & Ultra Hd"]}, {"name": "Washing Machine", "child": [{"name": "Full Automatic Front Load", "child": [], "code": "634137", "representation": "tvs-appliances/washing-machine/full-automatic-front-load", "path": ["Tvs & Appliances", "Washing Machine", "Full Automatic Front Load"]}, {"name": "Semi Automatic Front Load", "child": [], "code": "5b911b", "representation": "tvs-appliances/washing-machine/semi-automatic-front-load", "path": ["Tvs & Appliances", "Washing Machine", "Semi Automatic Front Load"]}, {"name": "Fully Automatic Front Load", "child": [], "code": "0349b2", "representation": "tvs-appliances/washing-machine/fully-automatic-front-load", "path": ["Tvs & Appliances", "Washing Machine", "Fully Automatic Front Load"]}], "code": "ab94c3", "representation": "tvs-appliances/washing-machine", "path": ["Tvs & Appliances", "Washing Machine"]}, {"name": "Air Conditioners", "child": [{"name": "Inverter Ac", "child": [], "code": "3f5641", "representation": "tvs-appliances/air-conditioners/inverter-ac", "path": ["Tvs & Appliances", "Air Conditioners", "Inverter Ac"]}, {"name": "Split Ac", "child": [], "code": "f54e8b", "representation": "tvs-appliances/air-conditioners/split-ac", "path": ["Tvs & Appliances", "Air Conditioners", "Split Ac"]}, {"name": "Window Ac", "child": [], "code": "48e318", "representation": "tvs-appliances/air-conditioners/window-ac", "path": ["Tvs & Appliances", "Air Conditioners", "Window Ac"]}], "code": "ffee9a", "representation": "tvs-appliances/air-conditioners", "path": ["Tvs & Appliances", "Air Conditioners"]}, {"name": "Refrigerator", "child": [{"name": "Single Door", "child": [], "code": "16c0f0", "representation": "tvs-appliances/refrigerator/single-door", "path": ["Tvs & Appliances", "Refrigerator", "Single Door"]}, {"name": "Double Door", "child": [], "code": "41112d", "representation": "tvs-appliances/refrigerator/double-door", "path": ["Tvs & Appliances", "Refrigerator", "Double Door"]}, {"name": "Triple Door", "child": [], "code": "e8861d", "representation": "tvs-appliances/refrigerator/triple-door", "path": ["Tvs & Appliances", "Refrigerator", "Triple Door"]}, {"name": "Side By Side", "child": [], "code": "d90be1", "representation": "tvs-appliances/refrigerator/side-by-side", "path": ["Tvs & Appliances", "Refrigerator", "Side By Side"]}, {"name": "Convertible", "child": [], "code": "59b98b", "representation": "tvs-appliances/refrigerator/convertible", "path": ["Tvs & Appliances", "Refrigerator", "Convertible"]}], "code": "4ca240", "representation": "tvs-appliances/refrigerator", "path": ["Tvs & Appliances", "Refrigerator"]}, {"name": "Kitchen Appliances", "child": [{"name": "Microwave Ovens", "child": [], "code": "54982a", "representation": "tvs-appliances/kitchen-appliances/microwave-ovens", "path": ["Tvs & Appliances", "Kitchen Appliances", "Microwave Ovens"]}, {"name": "Oven Toaster Grills (Otg)", "child": [], "code": "7647dc", "representation": "tvs-appliances/kitchen-appliances/oven-toaster-grills-otg", "path": ["Tvs & Appliances", "Kitchen Appliances", "Oven Toaster Grills (Otg)"]}, {"name": "Juicer/Mixer/Grinder", "child": [], "code": "99b254", "representation": "tvs-appliances/kitchen-appliances/juicermixergrinder", "path": ["Tvs & Appliances", "Kitchen Appliances", "Juicer/Mixer/Grinder"]}, {"name": "Electric Kettle", "child": [], "code": "8da59c", "representation": "tvs-appliances/kitchen-appliances/electric-kettle", "path": ["Tvs & Appliances", "Kitchen Appliances", "Electric Kettle"]}, {"name": "Induction Cooktops", "child": [], "code": "81b8e9", "representation": "tvs-appliances/kitchen-appliances/induction-cooktops", "path": ["Tvs & Appliances", "Kitchen Appliances", "Induction Cooktops"]}, {"name": "Chimneys", "child": [], "code": "1a8a2d", "representation": "tvs-appliances/kitchen-appliances/chimneys", "path": ["Tvs & Appliances", "Kitchen Appliances", "Chimneys"]}, {"name": "Hand Blenders", "child": [], "code": "7e45a7", "representation": "tvs-appliances/kitchen-appliances/hand-blenders", "path": ["Tvs & Appliances", "Kitchen Appliances", "Hand Blenders"]}, {"name": "Sandwich Makers", "child": [], "code": "30c63f", "representation": "tvs-appliances/kitchen-appliances/sandwich-makers", "path": ["Tvs & Appliances", "Kitchen Appliances", "Sandwich Makers"]}, {"name": "Pop Up Toaster", "child": [], "code": "a076cc", "representation": "tvs-appliances/kitchen-appliances/pop-up-toaster", "path": ["Tvs & Appliances", "Kitchen Appliances", "Pop Up Toaster"]}, {"name": "Electric Cooker", "child": [], "code": "43fe17", "representation": "tvs-appliances/kitchen-appliances/electric-cooker", "path": ["Tvs & Appliances", "Kitchen Appliances", "Electric Cooker"]}, {"name": "Wet Grinder", "child": [], "code": "9c872c", "representation": "tvs-appliances/kitchen-appliances/wet-grinder", "path": ["Tvs & Appliances", "Kitchen Appliances", "Wet Grinder"]}, {"name": "Food Processor", "child": [], "code": "c7c79f", "representation": "tvs-appliances/kitchen-appliances/food-processor", "path": ["Tvs & Appliances", "Kitchen Appliances", "Food Processor"]}, {"name": "Coffee Makers", "child": [], "code": "976ab2", "representation": "tvs-appliances/kitchen-appliances/coffee-makers", "path": ["Tvs & Appliances", "Kitchen Appliances", "Coffee Makers"]}, {"name": "Dishwashers", "child": [], "code": "b483b8", "representation": "tvs-appliances/kitchen-appliances/dishwashers", "path": ["Tvs & Appliances", "Kitchen Appliances", "Dishwashers"]}], "code": "40f233", "representation": "tvs-appliances/kitchen-appliances", "path": ["Tvs & Appliances", "Kitchen Appliances"]}, {"name": "Healthy Living Appliances", "child": [], "code": "b0dd54", "representation": "tvs-appliances/healthy-living-appliances", "path": ["Tvs & Appliances", "Healthy Living Appliances"]}, {"name": "Small Home Appliances", "child": [{"name": "Irons", "child": [], "code": "799a3b", "representation": "tvs-appliances/small-home-appliances/irons", "path": ["Tvs & Appliances", "Small Home Appliances", "Irons"]}, {"name": "Water Purifiers", "child": [], "code": "d195bc", "representation": "tvs-appliances/small-home-appliances/water-purifiers", "path": ["Tvs & Appliances", "Small Home Appliances", "Water Purifiers"]}, {"name": "Fans", "child": [], "code": "bcb45f", "representation": "tvs-appliances/small-home-appliances/fans", "path": ["Tvs & Appliances", "Small Home Appliances", "Fans"]}, {"name": "Air Cooler", "child": [], "code": "49e037", "representation": "tvs-appliances/small-home-appliances/air-cooler", "path": ["Tvs & Appliances", "Small Home Appliances", "Air Cooler"]}, {"name": "Inverters", "child": [], "code": "9b07a7", "representation": "tvs-appliances/small-home-appliances/inverters", "path": ["Tvs & Appliances", "Small Home Appliances", "Inverters"]}, {"name": "Vacuum Cleaner", "child": [], "code": "c4da72", "representation": "tvs-appliances/small-home-appliances/vacuum-cleaner", "path": ["Tvs & Appliances", "Small Home Appliances", "Vacuum Cleaner"]}, {"name": "Sewing Machines", "child": [], "code": "369d5b", "representation": "tvs-appliances/small-home-appliances/sewing-machines", "path": ["Tvs & Appliances", "Small Home Appliances", "Sewing Machines"]}, {"name": "Voltage Stabilizers", "child": [], "code": "28e27e", "representation": "tvs-appliances/small-home-appliances/voltage-stabilizers", "path": ["Tvs & Appliances", "Small Home Appliances", "Voltage Stabilizers"]}, {"name": "Water Geysers", "child": [], "code": "1c0aef", "representation": "tvs-appliances/small-home-appliances/water-geysers", "path": ["Tvs & Appliances", "Small Home Appliances", "Water Geysers"]}, {"name": "Immersion Rods", "child": [], "code": "bdef6d", "representation": "tvs-appliances/small-home-appliances/immersion-rods", "path": ["Tvs & Appliances", "Small Home Appliances", "Immersion Rods"]}], "code": "1ddd78", "representation": "tvs-appliances/small-home-appliances", "path": ["Tvs & Appliances", "Small Home Appliances"]}], "code": "ca3a50", "representation": "tvs-appliances", "path": ["Tvs & Appliances"]}, {"name": "Men", "child": [{"name": "Footwear", "child": [{"name": "Sports Shoes", "child": [], "code": "87209f", "representation": "men/footwear/sports-shoes", "path": ["Men", "Footwear", "Sports Shoes"]}, {"name": "Casual Shoes", "child": [], "code": "8ed0f6", "representation": "men/footwear/casual-shoes", "path": ["Men", "Footwear", "Casual Shoes"]}, {"name": "Formal Shoes", "child": [], "code": "5bee5d", "representation": "men/footwear/formal-shoes", "path": ["Men", "Footwear", "Formal Shoes"]}, {"name": "Sandals & Floaters", "child": [], "code": "14b06b", "representation": "men/footwear/sandals-floaters", "path": ["Men", "Footwear", "Sandals & Floaters"]}, {"name": "Flip-Flops", "child": [], "code": "69a167", "representation": "men/footwear/flip-flops", "path": ["Men", "Footwear", "Flip-Flops"]}, {"name": "Loafers", "child": [], "code": "f3a694", "representation": "men/footwear/loafers", "path": ["Men", "Footwear", "Loafers"]}, {"name": "Boots", "child": [], "code": "3f99d7", "representation": "men/footwear/boots", "path": ["Men", "Footwear", "Boots"]}, {"name": "Running Shoes", "child": [], "code": "5ffe69", "representation": "men/footwear/running-shoes", "path": ["Men", "Footwear", "Running Shoes"]}, {"name": "Sneakers", "child": [], "code": "e499c8", "representation": "men/footwear/sneakers", "path": ["Men", "Footwear", "Sneakers"]}], "code": "e9ffa3", "representation": "men/footwear", "path": ["Men", "Footwear"]}, {"name": "Men'S Grooming", "child": [{"name": "Deodorants", "child": [], "code": "32c12f", "representation": "men/mens-grooming/deodorants", "path": ["Men", "Men'S Grooming", "Deodorants"]}, {"name": "Perfumes", "child": [], "code": "0990a6", "representation": "men/mens-grooming/perfumes", "path": ["Men", "Men'S Grooming", "Perfumes"]}, {"name": "Beards Care & Grooming", "child": [], "code": "a68085", "representation": "men/mens-grooming/beards-care-grooming", "path": ["Men", "Men'S Grooming", "Beards Care & Grooming"]}, {"name": "Shaving & Aftershave", "child": [], "code": "cb8cbe", "representation": "men/mens-grooming/shaving-aftershave", "path": ["Men", "Men'S Grooming", "Shaving & Aftershave"]}, {"name": "Sexual Wellness", "child": [], "code": "863f7a", "representation": "men/mens-grooming/sexual-wellness", "path": ["Men", "Men'S Grooming", "Sexual Wellness"]}], "code": "58eaff", "representation": "men/mens-grooming", "path": ["Men", "Men'S Grooming"]}, {"name": "Clothing", "child": [], "code": "4751dc", "representation": "men/clothing", "path": ["Men", "Clothing"]}, {"name": "Top Wear", "child": [{"name": "T-Shirt", "child": [], "code": "72f95c", "representation": "men/top-wear/t-shirt", "path": ["Men", "Top Wear", "T-Shirt"]}, {"name": "Formal Shirts", "child": [], "code": "bd8e14", "representation": "men/top-wear/formal-shirts", "path": ["Men", "Top Wear", "Formal Shirts"]}, {"name": "Casual Shirts", "child": [], "code": "52dc00", "representation": "men/top-wear/casual-shirts", "path": ["Men", "Top Wear", "Casual Shirts"]}], "code": "13bfbf", "representation": "men/top-wear", "path": ["Men", "Top Wear"]}, {"name": "Bottom Wear", "child": [{"name": "Jeans", "child": [], "code": "d1f869", "representation": "men/bottom-wear/jeans", "path": ["Men", "Bottom Wear", "Jeans"]}, {"name": "Casual Trousers", "child": [], "code": "a0fb6d", "representation": "men/bottom-wear/casual-trousers", "path": ["Men", "Bottom Wear", "Casual Trousers"]}, {"name": "Formal Trousers", "child": [], "code": "148415", "representation": "men/bottom-wear/formal-trousers", "path": ["Men", "Bottom Wear", "Formal Trousers"]}, {"name": "Track Pants", "child": [], "code": "cbde3f", "representation": "men/bottom-wear/track-pants", "path": ["Men", "Bottom Wear", "Track Pants"]}, {"name": "Shorts", "child": [], "code": "cd9d90", "representation": "men/bottom-wear/shorts", "path": ["Men", "Bottom Wear", "Shorts"]}, {"name": "Cargo", "child": [], "code": "67cb1c", "representation": "men/bottom-wear/cargo", "path": ["Men", "Bottom Wear", "Cargo"]}, {"name": "Three Fourth", "child": [], "code": "9b9851", "representation": "men/bottom-wear/three-fourth", "path": ["Men", "Bottom Wear", "Three Fourth"]}], "code": "aec233", "representation": "men/bottom-wear", "path": ["Men", "Bottom Wear"]}, {"name": "Suits, Blazers & Waistcoats", "child": [], "code": "79d79e", "representation": "men/suits-blazers-waistcoats", "path": ["Men", "Suits, Blazers & Waistcoats"]}, {"name": "Ties, Socks, Caps & More", "child": [], "code": "6289c3", "representation": "men/ties-socks-caps-more", "path": ["Men", "Ties, Socks, Caps & More"]}, {"name": "Fabrics", "child": [], "code": "d984ad", "representation": "men/fabrics", "path": ["Men", "Fabrics"]}, {"name": "Winter Wear", "child": [{"name": "Sweatshirts", "child": [], "code": "21f02a", "representation": "men/winter-wear/sweatshirts", "path": ["Men", "Winter Wear", "Sweatshirts"]}, {"name": "Jackets", "child": [], "code": "25f334", "representation": "men/winter-wear/jackets", "path": ["Men", "Winter Wear", "Jackets"]}, {"name": "Sweater", "child": [], "code": "9c2593", "representation": "men/winter-wear/sweater", "path": ["Men", "Winter Wear", "Sweater"]}, {"name": "Tracksuits", "child": [], "code": "14dfd1", "representation": "men/winter-wear/tracksuits", "path": ["Men", "Winter Wear", "Tracksuits"]}], "code": "b44d60", "representation": "men/winter-wear", "path": ["Men", "Winter Wear"]}, {"name": "Ethnic Wear", "child": [{"name": "Kurta", "child": [], "code": "0ff3fb", "representation": "men/ethnic-wear/kurta", "path": ["Men", "Ethnic Wear", "Kurta"]}, {"name": "Ethnic Wears", "child": [], "code": "b79ce6", "representation": "men/ethnic-wear/ethnic-wears", "path": ["Men", "Ethnic Wear", "Ethnic Wears"]}, {"name": "Sherwanis", "child": [], "code": "b2c230", "representation": "men/ethnic-wear/sherwanis", "path": ["Men", "Ethnic Wear", "Sherwanis"]}, {"name": "Dhoti", "child": [], "code": "26d57d", "representation": "men/ethnic-wear/dhoti", "path": ["Men", "Ethnic Wear", "Dhoti"]}, {"name": "Lungi", "child": [], "code": "a9ebc8", "representation": "men/ethnic-wear/lungi", "path": ["Men", "Ethnic Wear", "Lungi"]}], "code": "b6cd5d", "representation": "men/ethnic-wear", "path": ["Men", "Ethnic Wear"]}, {"name": "Innerwear & Loungewear", "child": [{"name": "Briefs & Trunks", "child": [], "code": "52a43b", "representation": "men/innerwear-loungewear/briefs-trunks", "path": ["Men", "Innerwear & Loungewear", "Briefs & Trunks"]}, {"name": "Vests", "child": [], "code": "468dd0", "representation": "men/innerwear-loungewear/vests", "path": ["Men", "Innerwear & Loungewear", "Vests"]}, {"name": "Boxers", "child": [], "code": "23fd12", "representation": "men/innerwear-loungewear/boxers", "path": ["Men", "Innerwear & Loungewear", "Boxers"]}, {"name": "Pyjamas & Lounge Pants", "child": [], "code": "c94442", "representation": "men/innerwear-loungewear/pyjamas-lounge-pants", "path": ["Men", "Innerwear & Loungewear", "Pyjamas & Lounge Pants"]}, {"name": "Thermals", "child": [], "code": "2677b7", "representation": "men/innerwear-loungewear/thermals", "path": ["Men", "Innerwear & Loungewear", "Thermals"]}, {"name": "Night Suit", "child": [], "code": "9cf15f", "representation": "men/innerwear-loungewear/night-suit", "path": ["Men", "Innerwear & Loungewear", "Night Suit"]}], "code": "f04fe4", "representation": "men/innerwear-loungewear", "path": ["Men", "Innerwear & Loungewear"]}, {"name": "Raincoat & Windcheaters", "child": [], "code": "676e08", "representation": "men/raincoat-windcheaters", "path": ["Men", "Raincoat & Windcheaters"]}, {"name": "Watches", "child": [], "code": "845151", "representation": "men/watches", "path": ["Men", "Watches"]}, {"name": "Accessories", "child": [{"name": "Backpack", "child": [], "code": "72fb1e", "representation": "men/accessories/backpack", "path": ["Men", "Accessories", "Backpack"]}, {"name": "Wallets", "child": [], "code": "dea2d1", "representation": "men/accessories/wallets", "path": ["Men", "Accessories", "Wallets"]}, {"name": "Belts", "child": [], "code": "def061", "representation": "men/accessories/belts", "path": ["Men", "Accessories", "Belts"]}, {"name": "Sunglasses", "child": [], "code": "0afa11", "representation": "men/accessories/sunglasses", "path": ["Men", "Accessories", "Sunglasses"]}, {"name": "Luggage & Travel", "child": [], "code": "7234b6", "representation": "men/accessories/luggage-travel", "path": ["Men", "Accessories", "Luggage & Travel"]}, {"name": "Frames", "child": [], "code": "e67292", "representation": "men/accessories/frames", "path": ["Men", "Accessories", "Frames"]}, {"name": "Jewellery", "child": [], "code": "37034e", "representation": "men/accessories/jewellery", "path": ["Men", "Accessories", "Jewellery"]}], "code": "e2fd22", "representation": "men/accessories", "path": ["Men", "Accessories"]}, {"name": "Smart Watches", "child": [], "code": "baf2e8", "representation": "men/smart-watches", "path": ["Men", "Smart Watches"]}, {"name": "Smart Bands", "child": [], "code": "bfcc2a", "representation": "men/smart-bands", "path": ["Men", "Smart Bands"]}, {"name": "Personal Care Appliances", "child": [{"name": "Trimmers", "child": [], "code": "46a845", "representation": "men/personal-care-appliances/trimmers", "path": ["Men", "Personal Care Appliances", "Trimmers"]}, {"name": "Shavers", "child": [], "code": "216a96", "representation": "men/personal-care-appliances/shavers", "path": ["Men", "Personal Care Appliances", "Shavers"]}, {"name": "Grooming Kit", "child": [], "code": "3b8292", "representation": "men/personal-care-appliances/grooming-kit", "path": ["Men", "Personal Care Appliances", "Grooming Kit"]}, {"name": "Blades & Razor", "child": [], "code": "3cf2ab", "representation": "men/personal-care-appliances/blades-razor", "path": ["Men", "Personal Care Appliances", "Blades & Razor"]}, {"name": "Creams & Foam", "child": [], "code": "fdf789", "representation": "men/personal-care-appliances/creams-foam", "path": ["Men", "Personal Care Appliances", "Creams & Foam"]}, {"name": "After Shave", "child": [], "code": "fe459a", "representation": "men/personal-care-appliances/after-shave", "path": ["Men", "Personal Care Appliances", "After Shave"]}, {"name": "Shaving Brush", "child": [], "code": "e8cef5", "representation": "men/personal-care-appliances/shaving-brush", "path": ["Men", "Personal Care Appliances", "Shaving Brush"]}], "code": "941356", "representation": "men/personal-care-appliances", "path": ["Men", "Personal Care Appliances"]}], "code": "d2fc17", "representation": "men", "path": ["Men"]}, {"name": "Women", "child": [{"name": "Clothing", "child": [], "code": "fcb52c", "representation": "women/clothing", "path": ["Women", "Clothing"]}, {"name": "Women Western & Maternity Wear", "child": [{"name": "Topwear", "child": [], "code": "bd1669", "representation": "women/women-western-maternity-wear/topwear", "path": ["Women", "Women Western & Maternity Wear", "Topwear"]}, {"name": "Dresses", "child": [], "code": "7ebcda", "representation": "women/women-western-maternity-wear/dresses", "path": ["Women", "Women Western & Maternity Wear", "Dresses"]}, {"name": "Jeans", "child": [], "code": "76a60c", "representation": "women/women-western-maternity-wear/jeans", "path": ["Women", "Women Western & Maternity Wear", "Jeans"]}, {"name": "Shorts", "child": [], "code": "f6ba9c", "representation": "women/women-western-maternity-wear/shorts", "path": ["Women", "Women Western & Maternity Wear", "Shorts"]}, {"name": "Skirts", "child": [], "code": "015e22", "representation": "women/women-western-maternity-wear/skirts", "path": ["Women", "Women Western & Maternity Wear", "Skirts"]}, {"name": "Jeggings & Tights", "child": [], "code": "9386ac", "representation": "women/women-western-maternity-wear/jeggings-tights", "path": ["Women", "Women Western & Maternity Wear", "Jeggings & Tights"]}, {"name": "Trousers & Capris", "child": [], "code": "e77cde", "representation": "women/women-western-maternity-wear/trousers-capris", "path": ["Women", "Women Western & Maternity Wear", "Trousers & Capris"]}], "code": "e26529", "representation": "women/women-western-maternity-wear", "path": ["Women", "Women Western & Maternity Wear"]}, {"name": "Lingerie & Sleepwear", "child": [{"name": "Bras", "child": [], "code": "e101ea", "representation": "women/lingerie-sleepwear/bras", "path": ["Women", "Lingerie & Sleepwear", "Bras"]}, {"name": "Panties", "child": [], "code": "31dcd9", "representation": "women/lingerie-sleepwear/panties", "path": ["Women", "Lingerie & Sleepwear", "Panties"]}, {"name": "Lingerie Set", "child": [], "code": "36db21", "representation": "women/lingerie-sleepwear/lingerie-set", "path": ["Women", "Lingerie & Sleepwear", "Lingerie Set"]}, {"name": "Night Dresses & Nighties", "child": [], "code": "d52f44", "representation": "women/lingerie-sleepwear/night-dresses-nighties", "path": ["Women", "Lingerie & Sleepwear", "Night Dresses & Nighties"]}, {"name": "Shapewear", "child": [], "code": "3e89ab", "representation": "women/lingerie-sleepwear/shapewear", "path": ["Women", "Lingerie & Sleepwear", "Shapewear"]}, {"name": "Camisoles & Slips", "child": [], "code": "969fe9", "representation": "women/lingerie-sleepwear/camisoles-slips", "path": ["Women", "Lingerie & Sleepwear", "Camisoles & Slips"]}], "code": "17e4e6", "representation": "women/lingerie-sleepwear", "path": ["Women", "Lingerie & Sleepwear"]}, {"name": "Swim & Beachwear", "child": [], "code": "2608d1", "representation": "women/swim-beachwear", "path": ["Women", "Swim & Beachwear"]}, {"name": "Party Dresses", "child": [], "code": "8617b4", "representation": "women/party-dresses", "path": ["Women", "Party Dresses"]}, {"name": "Sport Wear", "child": [], "code": "6b8401", "representation": "women/sport-wear", "path": ["Women", "Sport Wear"]}, {"name": "Winter Wear", "child": [], "code": "9125e3", "representation": "women/winter-wear", "path": ["Women", "Winter Wear"]}, {"name": "Ethnic Wear", "child": [{"name": "Saree", "child": [], "code": "0e69ad", "representation": "women/ethnic-wear/saree", "path": ["Women", "Ethnic Wear", "Saree"]}, {"name": "Kurtas & Kurtis", "child": [], "code": "2adf16", "representation": "women/ethnic-wear/kurtas-kurtis", "path": ["Women", "Ethnic Wear", "Kurtas & Kurtis"]}, {"name": "Dress Material", "child": [], "code": "d69246", "representation": "women/ethnic-wear/dress-material", "path": ["Women", "Ethnic Wear", "Dress Material"]}, {"name": "Lehenga Choli", "child": [], "code": "2cf8bd", "representation": "women/ethnic-wear/lehenga-choli", "path": ["Women", "Ethnic Wear", "Lehenga Choli"]}, {"name": "Blouse", "child": [], "code": "7358ae", "representation": "women/ethnic-wear/blouse", "path": ["Women", "Ethnic Wear", "Blouse"]}, {"name": "Kurta Set & Salwar Suits", "child": [], "code": "244c3b", "representation": "women/ethnic-wear/kurta-set-salwar-suits", "path": ["Women", "Ethnic Wear", "Kurta Set & Salwar Suits"]}, {"name": "Gowns", "child": [], "code": "52cc4c", "representation": "women/ethnic-wear/gowns", "path": ["Women", "Ethnic Wear", "Gowns"]}, {"name": "Dupattas", "child": [], "code": "58b6b9", "representation": "women/ethnic-wear/dupattas", "path": ["Women", "Ethnic Wear", "Dupattas"]}], "code": "84b500", "representation": "women/ethnic-wear", "path": ["Women", "Ethnic Wear"]}, {"name": "Ethnic Bottoms", "child": [{"name": "Lenggings & Churidars", "child": [], "code": "750044", "representation": "women/ethnic-bottoms/lenggings-churidars", "path": ["Women", "Ethnic Bottoms", "Lenggings & Churidars"]}, {"name": "Palazzos", "child": [], "code": "855473", "representation": "women/ethnic-bottoms/palazzos", "path": ["Women", "Ethnic Bottoms", "Palazzos"]}, {"name": "Shararas", "child": [], "code": "85dc86", "representation": "women/ethnic-bottoms/shararas", "path": ["Women", "Ethnic Bottoms", "Shararas"]}, {"name": "Salwars & Patiala", "child": [], "code": "3ed596", "representation": "women/ethnic-bottoms/salwars-patiala", "path": ["Women", "Ethnic Bottoms", "Salwars & Patiala"]}, {"name": "Dhoti Pants", "child": [], "code": "ae615b", "representation": "women/ethnic-bottoms/dhoti-pants", "path": ["Women", "Ethnic Bottoms", "Dhoti Pants"]}, {"name": "Ethnic Trousers", "child": [], "code": "a05588", "representation": "women/ethnic-bottoms/ethnic-trousers", "path": ["Women", "Ethnic Bottoms", "Ethnic Trousers"]}, {"name": "Saree Shapewear & Petticoats", "child": [], "code": "c95ef4", "representation": "women/ethnic-bottoms/saree-shapewear-petticoats", "path": ["Women", "Ethnic Bottoms", "Saree Shapewear & Petticoats"]}], "code": "15bda5", "representation": "women/ethnic-bottoms", "path": ["Women", "Ethnic Bottoms"]}, {"name": "Footwear", "child": [], "code": "10ff21", "representation": "women/footwear", "path": ["Women", "Footwear"]}, {"name": "Sandals", "child": [{"name": "Flats", "child": [], "code": "b71251", "representation": "women/sandals/flats", "path": ["Women", "Sandals", "Flats"]}, {"name": "Heels", "child": [], "code": "10b263", "representation": "women/sandals/heels", "path": ["Women", "Sandals", "Heels"]}, {"name": "Wedges", "child": [], "code": "d78e43", "representation": "women/sandals/wedges", "path": ["Women", "Sandals", "Wedges"]}], "code": "f0e7b9", "representation": "women/sandals", "path": ["Women", "Sandals"]}, {"name": "Shoes", "child": [{"name": "Sports Shoes", "child": [], "code": "33d653", "representation": "women/shoes/sports-shoes", "path": ["Women", "Shoes", "Sports Shoes"]}, {"name": "Casual Shoes", "child": [], "code": "7cbbf7", "representation": "women/shoes/casual-shoes", "path": ["Women", "Shoes", "Casual Shoes"]}, {"name": "Boots", "child": [], "code": "7c0628", "representation": "women/shoes/boots", "path": ["Women", "Shoes", "Boots"]}], "code": "40537e", "representation": "women/shoes", "path": ["Women", "Shoes"]}, {"name": "Ballerinas", "child": [], "code": "414fea", "representation": "women/ballerinas", "path": ["Women", "Ballerinas"]}, {"name": "Slippers & Flip-Flop'S", "child": [], "code": "419ba9", "representation": "women/slippers-flip-flops", "path": ["Women", "Slippers & Flip-Flop'S"]}, {"name": "Watches", "child": [], "code": "f02e73", "representation": "women/watches", "path": ["Women", "Watches"]}, {"name": "Smart Watches", "child": [], "code": "a05f55", "representation": "women/smart-watches", "path": ["Women", "Smart Watches"]}, {"name": "Personal Care Appliances", "child": [{"name": "Hair Straightners", "child": [], "code": "710d7d", "representation": "women/personal-care-appliances/hair-straightners", "path": ["Women", "Personal Care Appliances", "Hair Straightners"]}, {"name": "Hair Dryers", "child": [], "code": "1e12df", "representation": "women/personal-care-appliances/hair-dryers", "path": ["Women", "Personal Care Appliances", "Hair Dryers"]}, {"name": "Epilators", "child": [], "code": "291faa", "representation": "women/personal-care-appliances/epilators", "path": ["Women", "Personal Care Appliances", "Epilators"]}], "code": "a12200", "representation": "women/personal-care-appliances", "path": ["Women", "Personal Care Appliances"]}, {"name": "Beauty & Grooming", "child": [{"name": "Make Up", "child": [], "code": "e64e30", "representation": "women/beauty-grooming/make-up", "path": ["Women", "Beauty & Grooming", "Make Up"]}, {"name": "Skin Care", "child": [], "code": "07bb40", "representation": "women/beauty-grooming/skin-care", "path": ["Women", "Beauty & Grooming", "Skin Care"]}, {"name": "Hair Care", "child": [], "code": "d0bb89", "representation": "women/beauty-grooming/hair-care", "path": ["Women", "Beauty & Grooming", "Hair Care"]}, {"name": "Bath & Spa", "child": [], "code": "6d1bd1", "representation": "women/beauty-grooming/bath-spa", "path": ["Women", "Beauty & Grooming", "Bath & Spa"]}, {"name": "Deodorants & Perfumes", "child": [], "code": "8c9377", "representation": "women/beauty-grooming/deodorants-perfumes", "path": ["Women", "Beauty & Grooming", "Deodorants & Perfumes"]}], "code": "2329f1", "representation": "women/beauty-grooming", "path": ["Women", "Beauty & Grooming"]}, {"name": "Jewellery", "child": [{"name": "Artificial Jewellery", "child": [], "code": "78f035", "representation": "women/jewellery/artificial-jewellery", "path": ["Women", "Jewellery", "Artificial Jewellery"]}, {"name": "Silver Jewellery", "child": [], "code": "e3e959", "representation": "women/jewellery/silver-jewellery", "path": ["Women", "Jewellery", "Silver Jewellery"]}, {"name": "Precious Jewellery", "child": [], "code": "4b12ef", "representation": "women/jewellery/precious-jewellery", "path": ["Women", "Jewellery", "Precious Jewellery"]}, {"name": "Coins & Bars", "child": [], "code": "705062", "representation": "women/jewellery/coins-bars", "path": ["Women", "Jewellery", "Coins & Bars"]}], "code": "30b319", "representation": "women/jewellery", "path": ["Women", "Jewellery"]}, {"name": "Accessories", "child": [{"name": "Handbags", "child": [], "code": "c3aad3", "representation": "women/accessories/handbags", "path": ["Women", "Accessories", "Handbags"]}, {"name": "Shoulder Bags", "child": [], "code": "331db7", "representation": "women/accessories/shoulder-bags", "path": ["Women", "Accessories", "Shoulder Bags"]}, {"name": "Totes", "child": [], "code": "4d4f23", "representation": "women/accessories/totes", "path": ["Women", "Accessories", "Totes"]}, {"name": "Sling Bags", "child": [], "code": "3cf1e1", "representation": "women/accessories/sling-bags", "path": ["Women", "Accessories", "Sling Bags"]}, {"name": "Clutches", "child": [], "code": "c8fa71", "representation": "women/accessories/clutches", "path": ["Women", "Accessories", "Clutches"]}, {"name": "Wallets & Belts", "child": [], "code": "e432f0", "representation": "women/accessories/wallets-belts", "path": ["Women", "Accessories", "Wallets & Belts"]}, {"name": "Luggage & Travel", "child": [], "code": "36bbaa", "representation": "women/accessories/luggage-travel", "path": ["Women", "Accessories", "Luggage & Travel"]}, {"name": "Sunglasses", "child": [], "code": "f75937", "representation": "women/accessories/sunglasses", "path": ["Women", "Accessories", "Sunglasses"]}, {"name": "Frames", "child": [], "code": "27cb79", "representation": "women/accessories/frames", "path": ["Women", "Accessories", "Frames"]}], "code": "a6d295", "representation": "women/accessories", "path": ["Women", "Accessories"]}, {"name": "Kajal & Makeup", "child": [{"name": "Kajal", "child": [], "code": "a0310f", "representation": "women/kajal-makeup/kajal", "path": ["Women", "Kajal & Makeup", "Kajal"]}, {"name": "Lipsticks", "child": [], "code": "02e12e", "representation": "women/kajal-makeup/lipsticks", "path": ["Women", "Kajal & Makeup", "Lipsticks"]}, {"name": "Makeup", "child": [], "code": "fe3b8d", "representation": "women/kajal-makeup/makeup", "path": ["Women", "Kajal & Makeup", "Makeup"]}, {"name": "Nail Care", "child": [], "code": "bb2281", "representation": "women/kajal-makeup/nail-care", "path": ["Women", "Kajal & Makeup", "Nail Care"]}], "code": "ece9c0", "representation": "women/kajal-makeup", "path": ["Women", "Kajal & Makeup"]}, {"name": "Sanitary Needs", "child": [{"name": "Sanitary Pads", "child": [], "code": "f365c9", "representation": "women/sanitary-needs/sanitary-pads", "path": ["Women", "Sanitary Needs", "Sanitary Pads"]}, {"name": "Tampons", "child": [], "code": "907727", "representation": "women/sanitary-needs/tampons", "path": ["Women", "Sanitary Needs", "Tampons"]}, {"name": "Intimate Care", "child": [], "code": "4ee78c", "representation": "women/sanitary-needs/intimate-care", "path": ["Women", "Sanitary Needs", "Intimate Care"]}], "code": "291e50", "representation": "women/sanitary-needs", "path": ["Women", "Sanitary Needs"]}], "code": "8267a0", "representation": "women", "path": ["Women"]}, {"name": "Baby & Kids", "child": [{"name": "Kids' Clothing", "child": [], "code": "5144fd", "representation": "baby-kids/kids-clothing", "path": ["Baby & Kids", "Kids' Clothing"]}, {"name": "Boys' Clothing", "child": [{"name": "T-Shirts", "child": [], "code": "7fc043", "representation": "baby-kids/boys-clothing/t-shirts", "path": ["Baby & Kids", "Boys' Clothing", "T-Shirts"]}, {"name": "Ethnic Wear", "child": [], "code": "5e7010", "representation": "baby-kids/boys-clothing/ethnic-wear", "path": ["Baby & Kids", "Boys' Clothing", "Ethnic Wear"]}, {"name": "Shorts", "child": [], "code": "31db71", "representation": "baby-kids/boys-clothing/shorts", "path": ["Baby & Kids", "Boys' Clothing", "Shorts"]}, {"name": "Shirts", "child": [], "code": "bcace0", "representation": "baby-kids/boys-clothing/shirts", "path": ["Baby & Kids", "Boys' Clothing", "Shirts"]}, {"name": "Innerwear", "child": [], "code": "4f4e93", "representation": "baby-kids/boys-clothing/innerwear", "path": ["Baby & Kids", "Boys' Clothing", "Innerwear"]}], "code": "171598", "representation": "baby-kids/boys-clothing", "path": ["Baby & Kids", "Boys' Clothing"]}, {"name": "Girls' Clothing", "child": [{"name": "Dresses & Skirts", "child": [], "code": "1ea369", "representation": "baby-kids/girls-clothing/dresses-skirts", "path": ["Baby & Kids", "Girls' Clothing", "Dresses & Skirts"]}, {"name": "Ethnic Wear", "child": [], "code": "f06f8a", "representation": "baby-kids/girls-clothing/ethnic-wear", "path": ["Baby & Kids", "Girls' Clothing", "Ethnic Wear"]}, {"name": "T-Shirts & Tops", "child": [], "code": "f476cc", "representation": "baby-kids/girls-clothing/t-shirts-tops", "path": ["Baby & Kids", "Girls' Clothing", "T-Shirts & Tops"]}, {"name": "Innerwear", "child": [], "code": "0796fa", "representation": "baby-kids/girls-clothing/innerwear", "path": ["Baby & Kids", "Girls' Clothing", "Innerwear"]}], "code": "03f20e", "representation": "baby-kids/girls-clothing", "path": ["Baby & Kids", "Girls' Clothing"]}, {"name": "Baby Boys' Clothing", "child": [{"name": "Combos Sets", "child": [], "code": "3c2d88", "representation": "baby-kids/baby-boys-clothing/combos-sets", "path": ["Baby & Kids", "Baby Boys' Clothing", "Combos Sets"]}, {"name": "T-Shirts", "child": [], "code": "9d5c5c", "representation": "baby-kids/baby-boys-clothing/t-shirts", "path": ["Baby & Kids", "Baby Boys' Clothing", "T-Shirts"]}, {"name": "Innerwear", "child": [], "code": "7dcae3", "representation": "baby-kids/baby-boys-clothing/innerwear", "path": ["Baby & Kids", "Baby Boys' Clothing", "Innerwear"]}], "code": "c3cbc1", "representation": "baby-kids/baby-boys-clothing", "path": ["Baby & Kids", "Baby Boys' Clothing"]}, {"name": "Baby Girls' Clothing", "child": [{"name": "Combos Sets", "child": [], "code": "2ff63a", "representation": "baby-kids/baby-girls-clothing/combos-sets", "path": ["Baby & Kids", "Baby Girls' Clothing", "Combos Sets"]}, {"name": "Dresses & Gowns", "child": [], "code": "064e92", "representation": "baby-kids/baby-girls-clothing/dresses-gowns", "path": ["Baby & Kids", "Baby Girls' Clothing", "Dresses & Gowns"]}, {"name": "Innerwear", "child": [], "code": "f04024", "representation": "baby-kids/baby-girls-clothing/innerwear", "path": ["Baby & Kids", "Baby Girls' Clothing", "Innerwear"]}], "code": "805202", "representation": "baby-kids/baby-girls-clothing", "path": ["Baby & Kids", "Baby Girls' Clothing"]}, {"name": "Kids' Footwear", "child": [], "code": "aac6b0", "representation": "baby-kids/kids-footwear", "path": ["Baby & Kids", "Kids' Footwear"]}, {"name": "Boys' Footwear", "child": [{"name": "Sandals", "child": [], "code": "114073", "representation": "baby-kids/boys-footwear/sandals", "path": ["Baby & Kids", "Boys' Footwear", "Sandals"]}, {"name": "Sport Shoes", "child": [], "code": "0b8d2f", "representation": "baby-kids/boys-footwear/sport-shoes", "path": ["Baby & Kids", "Boys' Footwear", "Sport Shoes"]}], "code": "f0bebc", "representation": "baby-kids/boys-footwear", "path": ["Baby & Kids", "Boys' Footwear"]}, {"name": "Girls' Footwear", "child": [{"name": "Flats & Bellies", "child": [], "code": "b29afb", "representation": "baby-kids/girls-footwear/flats-bellies", "path": ["Baby & Kids", "Girls' Footwear", "Flats & Bellies"]}, {"name": "Sport Shoes", "child": [], "code": "82cdd0", "representation": "baby-kids/girls-footwear/sport-shoes", "path": ["Baby & Kids", "Girls' Footwear", "Sport Shoes"]}], "code": "edeaed", "representation": "baby-kids/girls-footwear", "path": ["Baby & Kids", "Girls' Footwear"]}, {"name": "Infant Footwear", "child": [], "code": "1a5f2f", "representation": "baby-kids/infant-footwear", "path": ["Baby & Kids", "Infant Footwear"]}, {"name": "Character Shoes", "child": [{"name": "Kids' Watches", "child": [], "code": "e9f521", "representation": "baby-kids/character-shoes/kids-watches", "path": ["Baby & Kids", "Character Shoes", "Kids' Watches"]}, {"name": "Kids' Sunglasses", "child": [], "code": "d6cc7b", "representation": "baby-kids/character-shoes/kids-sunglasses", "path": ["Baby & Kids", "Character Shoes", "Kids' Sunglasses"]}], "code": "dec5b5", "representation": "baby-kids/character-shoes", "path": ["Baby & Kids", "Character Shoes"]}, {"name": "Kids' Winter Wear", "child": [], "code": "aea7cf", "representation": "baby-kids/kids-winter-wear", "path": ["Baby & Kids", "Kids' Winter Wear"]}, {"name": "Boys' Winter Wear", "child": [{"name": "Boys' Sweatshirts", "child": [], "code": "353b8c", "representation": "baby-kids/boys-winter-wear/boys-sweatshirts", "path": ["Baby & Kids", "Boys' Winter Wear", "Boys' Sweatshirts"]}, {"name": "Boys' Jacket", "child": [], "code": "db2d99", "representation": "baby-kids/boys-winter-wear/boys-jacket", "path": ["Baby & Kids", "Boys' Winter Wear", "Boys' Jacket"]}], "code": "4a01d3", "representation": "baby-kids/boys-winter-wear", "path": ["Baby & Kids", "Boys' Winter Wear"]}, {"name": "Girls' Winter Wear", "child": [{"name": "Girls' Sweatshirts", "child": [], "code": "29df67", "representation": "baby-kids/girls-winter-wear/girls-sweatshirts", "path": ["Baby & Kids", "Girls' Winter Wear", "Girls' Sweatshirts"]}, {"name": "Girls' Jackets", "child": [], "code": "79824c", "representation": "baby-kids/girls-winter-wear/girls-jackets", "path": ["Baby & Kids", "Girls' Winter Wear", "Girls' Jackets"]}, {"name": "Infants Winter Wear", "child": [], "code": "07ea74", "representation": "baby-kids/girls-winter-wear/infants-winter-wear", "path": ["Baby & Kids", "Girls' Winter Wear", "Infants Winter Wear"]}, {"name": "Thermals", "child": [], "code": "def4fd", "representation": "baby-kids/girls-winter-wear/thermals", "path": ["Baby & Kids", "Girls' Winter Wear", "Thermals"]}], "code": "f2c561", "representation": "baby-kids/girls-winter-wear", "path": ["Baby & Kids", "Girls' Winter Wear"]}, {"name": "Toys", "child": [{"name": "Remote Control Toys", "child": [], "code": "f433e6", "representation": "baby-kids/toys/remote-control-toys", "path": ["Baby & Kids", "Toys", "Remote Control Toys"]}, {"name": "Educational Toys", "child": [], "code": "d6de35", "representation": "baby-kids/toys/educational-toys", "path": ["Baby & Kids", "Toys", "Educational Toys"]}, {"name": "Soft Toys", "child": [], "code": "c36638", "representation": "baby-kids/toys/soft-toys", "path": ["Baby & Kids", "Toys", "Soft Toys"]}, {"name": "Cars & Die-Cast Vehicles", "child": [], "code": "637cc4", "representation": "baby-kids/toys/cars-die-cast-vehicles", "path": ["Baby & Kids", "Toys", "Cars & Die-Cast Vehicles"]}, {"name": "Outdoor Toys", "child": [], "code": "c8b39e", "representation": "baby-kids/toys/outdoor-toys", "path": ["Baby & Kids", "Toys", "Outdoor Toys"]}, {"name": "Action Figures", "child": [], "code": "63ddf5", "representation": "baby-kids/toys/action-figures", "path": ["Baby & Kids", "Toys", "Action Figures"]}, {"name": "Board Games", "child": [], "code": "e4c519", "representation": "baby-kids/toys/board-games", "path": ["Baby & Kids", "Toys", "Board Games"]}, {"name": "Musical Toys", "child": [], "code": "c9ea84", "representation": "baby-kids/toys/musical-toys", "path": ["Baby & Kids", "Toys", "Musical Toys"]}, {"name": "Dolls & Doll Houses", "child": [], "code": "b4c533", "representation": "baby-kids/toys/dolls-doll-houses", "path": ["Baby & Kids", "Toys", "Dolls & Doll Houses"]}, {"name": "Puzzles", "child": [], "code": "83b826", "representation": "baby-kids/toys/puzzles", "path": ["Baby & Kids", "Toys", "Puzzles"]}, {"name": "S.T.E.M Toys", "child": [], "code": "f97182", "representation": "baby-kids/toys/stem-toys", "path": ["Baby & Kids", "Toys", "S.T.E.M Toys"]}, {"name": "Helicopter & Drones", "child": [], "code": "e4ff13", "representation": "baby-kids/toys/helicopter-drones", "path": ["Baby & Kids", "Toys", "Helicopter & Drones"]}, {"name": "Toy Guns", "child": [], "code": "aad512", "representation": "baby-kids/toys/toy-guns", "path": ["Baby & Kids", "Toys", "Toy Guns"]}, {"name": "Party Supplies", "child": [], "code": "024a78", "representation": "baby-kids/toys/party-supplies", "path": ["Baby & Kids", "Toys", "Party Supplies"]}], "code": "6945a5", "representation": "baby-kids/toys", "path": ["Baby & Kids", "Toys"]}, {"name": "School Supplies", "child": [{"name": "School Bags", "child": [], "code": "bff0ad", "representation": "baby-kids/school-supplies/school-bags", "path": ["Baby & Kids", "School Supplies", "School Bags"]}, {"name": "School Combo Sets", "child": [], "code": "1920af", "representation": "baby-kids/school-supplies/school-combo-sets", "path": ["Baby & Kids", "School Supplies", "School Combo Sets"]}, {"name": "Lunch Box", "child": [], "code": "41e668", "representation": "baby-kids/school-supplies/lunch-box", "path": ["Baby & Kids", "School Supplies", "Lunch Box"]}], "code": "bb94f1", "representation": "baby-kids/school-supplies", "path": ["Baby & Kids", "School Supplies"]}, {"name": "Baby Care", "child": [{"name": "Diapers", "child": [], "code": "036d7c", "representation": "baby-kids/baby-care/diapers", "path": ["Baby & Kids", "Baby Care", "Diapers"]}, {"name": "Wipes", "child": [], "code": "64eac9", "representation": "baby-kids/baby-care/wipes", "path": ["Baby & Kids", "Baby Care", "Wipes"]}, {"name": "Diapering & Potty Training", "child": [], "code": "9f5e72", "representation": "baby-kids/baby-care/diapering-potty-training", "path": ["Baby & Kids", "Baby Care", "Diapering & Potty Training"]}, {"name": "Baby Soaps", "child": [], "code": "f4924b", "representation": "baby-kids/baby-care/baby-soaps", "path": ["Baby & Kids", "Baby Care", "Baby Soaps"]}, {"name": "Baby Shampoo", "child": [], "code": "6f0ad3", "representation": "baby-kids/baby-care/baby-shampoo", "path": ["Baby & Kids", "Baby Care", "Baby Shampoo"]}, {"name": "Baby Oil", "child": [], "code": "8bc784", "representation": "baby-kids/baby-care/baby-oil", "path": ["Baby & Kids", "Baby Care", "Baby Oil"]}, {"name": "Baby Cream", "child": [], "code": "b6f869", "representation": "baby-kids/baby-care/baby-cream", "path": ["Baby & Kids", "Baby Care", "Baby Cream"]}, {"name": "Baby Powder", "child": [], "code": "dbed27", "representation": "baby-kids/baby-care/baby-powder", "path": ["Baby & Kids", "Baby Care", "Baby Powder"]}, {"name": "Baby Grooming", "child": [], "code": "c269a2", "representation": "baby-kids/baby-care/baby-grooming", "path": ["Baby & Kids", "Baby Care", "Baby Grooming"]}, {"name": "Baby Bathing Accessories", "child": [], "code": "314cbe", "representation": "baby-kids/baby-care/baby-bathing-accessories", "path": ["Baby & Kids", "Baby Care", "Baby Bathing Accessories"]}, {"name": "Baby Gift Sets & Combo", "child": [], "code": "02844d", "representation": "baby-kids/baby-care/baby-gift-sets-combo", "path": ["Baby & Kids", "Baby Care", "Baby Gift Sets & Combo"]}, {"name": "Baby Oral Care", "child": [], "code": "8e0e08", "representation": "baby-kids/baby-care/baby-oral-care", "path": ["Baby & Kids", "Baby Care", "Baby Oral Care"]}, {"name": "Nursing & Breast Feeding", "child": [], "code": "84e6a4", "representation": "baby-kids/baby-care/nursing-breast-feeding", "path": ["Baby & Kids", "Baby Care", "Nursing & Breast Feeding"]}, {"name": "Baby Feeding Bottle & Accessories", "child": [], "code": "a24e2d", "representation": "baby-kids/baby-care/baby-feeding-bottle-accessories", "path": ["Baby & Kids", "Baby Care", "Baby Feeding Bottle & Accessories"]}, {"name": "Baby Feeding Utensils & Accessories", "child": [], "code": "e18c24", "representation": "baby-kids/baby-care/baby-feeding-utensils-accessories", "path": ["Baby & Kids", "Baby Care", "Baby Feeding Utensils & Accessories"]}, {"name": "Baby Bedding", "child": [], "code": "2c2967", "representation": "baby-kids/baby-care/baby-bedding", "path": ["Baby & Kids", "Baby Care", "Baby Bedding"]}, {"name": "Baby Gear", "child": [], "code": "77fd12", "representation": "baby-kids/baby-care/baby-gear", "path": ["Baby & Kids", "Baby Care", "Baby Gear"]}, {"name": "Baby Medical & Health Care", "child": [], "code": "5aadc0", "representation": "baby-kids/baby-care/baby-medical-health-care", "path": ["Baby & Kids", "Baby Care", "Baby Medical & Health Care"]}, {"name": "Baby Proofing & Safety", "child": [], "code": "c650b1", "representation": "baby-kids/baby-care/baby-proofing-safety", "path": ["Baby & Kids", "Baby Care", "Baby Proofing & Safety"]}, {"name": "Baby Cleaners & Detergents", "child": [], "code": "df2939", "representation": "baby-kids/baby-care/baby-cleaners-detergents", "path": ["Baby & Kids", "Baby Care", "Baby Cleaners & Detergents"]}], "code": "27894f", "representation": "baby-kids/baby-care", "path": ["Baby & Kids", "Baby Care"]}, {"name": "Baby Food", "child": [{"name": "Baby Cereal", "child": [], "code": "cdb2c3", "representation": "baby-kids/baby-food/baby-cereal", "path": ["Baby & Kids", "Baby Food", "Baby Cereal"]}, {"name": "Infant Formula", "child": [], "code": "eeafc1", "representation": "baby-kids/baby-food/infant-formula", "path": ["Baby & Kids", "Baby Food", "Infant Formula"]}], "code": "12dd1d", "representation": "baby-kids/baby-food", "path": ["Baby & Kids", "Baby Food"]}], "code": "ab0266", "representation": "baby-kids", "path": ["Baby & Kids"]}, {"name": "Home & Furniture", "child": [{"name": "Kitchen, Cookware & Serveware", "child": [{"name": "Pans", "child": [], "code": "ad5bad", "representation": "home-furniture/kitchen-cookware-serveware/pans", "path": ["Home & Furniture", "Kitchen, Cookware & Serveware", "Pans"]}, {"name": "Tawas", "child": [], "code": "d8d326", "representation": "home-furniture/kitchen-cookware-serveware/tawas", "path": ["Home & Furniture", "Kitchen, Cookware & Serveware", "Tawas"]}, {"name": "Pressure Cookers", "child": [], "code": "3804a0", "representation": "home-furniture/kitchen-cookware-serveware/pressure-cookers", "path": ["Home & Furniture", "Kitchen, Cookware & Serveware", "Pressure Cookers"]}, {"name": "Kitchen Tools", "child": [], "code": "55f9a4", "representation": "home-furniture/kitchen-cookware-serveware/kitchen-tools", "path": ["Home & Furniture", "Kitchen, Cookware & Serveware", "Kitchen Tools"]}, {"name": "Gas Stoves", "child": [], "code": "e74689", "representation": "home-furniture/kitchen-cookware-serveware/gas-stoves", "path": ["Home & Furniture", "Kitchen, Cookware & Serveware", "Gas Stoves"]}], "code": "692c2c", "representation": "home-furniture/kitchen-cookware-serveware", "path": ["Home & Furniture", "Kitchen, Cookware & Serveware"]}, {"name": "Tableware & Dinnerware", "child": [{"name": "Coffee Mugs", "child": [], "code": "6b5239", "representation": "home-furniture/tableware-dinnerware/coffee-mugs", "path": ["Home & Furniture", "Tableware & Dinnerware", "Coffee Mugs"]}, {"name": "Dinner Set", "child": [], "code": "bf6ec7", "representation": "home-furniture/tableware-dinnerware/dinner-set", "path": ["Home & Furniture", "Tableware & Dinnerware", "Dinner Set"]}, {"name": "Barware", "child": [], "code": "411df4", "representation": "home-furniture/tableware-dinnerware/barware", "path": ["Home & Furniture", "Tableware & Dinnerware", "Barware"]}], "code": "6f0b15", "representation": "home-furniture/tableware-dinnerware", "path": ["Home & Furniture", "Tableware & Dinnerware"]}, {"name": "Kitchen Storage", "child": [{"name": "Water Bottles", "child": [], "code": "83c8e7", "representation": "home-furniture/kitchen-storage/water-bottles", "path": ["Home & Furniture", "Kitchen Storage", "Water Bottles"]}, {"name": "Lunch Boxes", "child": [], "code": "cdad0d", "representation": "home-furniture/kitchen-storage/lunch-boxes", "path": ["Home & Furniture", "Kitchen Storage", "Lunch Boxes"]}, {"name": "Flasks", "child": [], "code": "c4e2a1", "representation": "home-furniture/kitchen-storage/flasks", "path": ["Home & Furniture", "Kitchen Storage", "Flasks"]}, {"name": "Casseroles", "child": [], "code": "0365c9", "representation": "home-furniture/kitchen-storage/casseroles", "path": ["Home & Furniture", "Kitchen Storage", "Casseroles"]}, {"name": "Kitchen Containers", "child": [], "code": "33053f", "representation": "home-furniture/kitchen-storage/kitchen-containers", "path": ["Home & Furniture", "Kitchen Storage", "Kitchen Containers"]}], "code": "b8b319", "representation": "home-furniture/kitchen-storage", "path": ["Home & Furniture", "Kitchen Storage"]}, {"name": "Cleaning Supplies", "child": [], "code": "d3c435", "representation": "home-furniture/cleaning-supplies", "path": ["Home & Furniture", "Cleaning Supplies"]}, {"name": "Furniture Top Offers", "child": [], "code": "325f5b", "representation": "home-furniture/furniture-top-offers", "path": ["Home & Furniture", "Furniture Top Offers"]}, {"name": "Bed Room Furniture", "child": [], "code": "db28b2", "representation": "home-furniture/bed-room-furniture", "path": ["Home & Furniture", "Bed Room Furniture"]}, {"name": "Bed Room Furniture", "child": [{"name": "Beds", "child": [], "code": "8d87cb", "representation": "home-furniture/bed-room-furniture/beds", "path": ["Home & Furniture", "Bed Room Furniture", "Beds"]}, {"name": "Mattresses", "child": [], "code": "393702", "representation": "home-furniture/bed-room-furniture/mattresses", "path": ["Home & Furniture", "Bed Room Furniture", "Mattresses"]}, {"name": "Wardrobes", "child": [], "code": "4ebbc0", "representation": "home-furniture/bed-room-furniture/wardrobes", "path": ["Home & Furniture", "Bed Room Furniture", "Wardrobes"]}], "code": "db28b2", "representation": "home-furniture/bed-room-furniture", "path": ["Home & Furniture", "Bed Room Furniture"]}, {"name": "Living Room Furniture", "child": [{"name": "Sofa", "child": [], "code": "8f0049", "representation": "home-furniture/living-room-furniture/sofa", "path": ["Home & Furniture", "Living Room Furniture", "Sofa"]}, {"name": "Sofa Beds", "child": [], "code": "5d72ed", "representation": "home-furniture/living-room-furniture/sofa-beds", "path": ["Home & Furniture", "Living Room Furniture", "Sofa Beds"]}, {"name": "Tv Units", "child": [], "code": "d7f5d3", "representation": "home-furniture/living-room-furniture/tv-units", "path": ["Home & Furniture", "Living Room Furniture", "Tv Units"]}, {"name": "Dining Tables & Chairs", "child": [], "code": "f9dc34", "representation": "home-furniture/living-room-furniture/dining-tables-chairs", "path": ["Home & Furniture", "Living Room Furniture", "Dining Tables & Chairs"]}, {"name": "Coffee Tables", "child": [], "code": "956ecd", "representation": "home-furniture/living-room-furniture/coffee-tables", "path": ["Home & Furniture", "Living Room Furniture", "Coffee Tables"]}, {"name": "Shoe Racks", "child": [], "code": "1da34b", "representation": "home-furniture/living-room-furniture/shoe-racks", "path": ["Home & Furniture", "Living Room Furniture", "Shoe Racks"]}], "code": "ff1457", "representation": "home-furniture/living-room-furniture", "path": ["Home & Furniture", "Living Room Furniture"]}, {"name": "Office & Study Furniture", "child": [{"name": "Kids Room Furniture", "child": [], "code": "4b2f3e", "representation": "home-furniture/office-study-furniture/kids-room-furniture", "path": ["Home & Furniture", "Office & Study Furniture", "Kids Room Furniture"]}], "code": "44c632", "representation": "home-furniture/office-study-furniture", "path": ["Home & Furniture", "Office & Study Furniture"]}, {"name": "Diy Furniture", "child": [{"name": "Bean Bags", "child": [], "code": "6ffc5f", "representation": "home-furniture/diy-furniture/bean-bags", "path": ["Home & Furniture", "Diy Furniture", "Bean Bags"]}, {"name": "Collapsible Wardrobes", "child": [], "code": "e0a636", "representation": "home-furniture/diy-furniture/collapsible-wardrobes", "path": ["Home & Furniture", "Diy Furniture", "Collapsible Wardrobes"]}], "code": "d5225f", "representation": "home-furniture/diy-furniture", "path": ["Home & Furniture", "Diy Furniture"]}, {"name": "Furnishing", "child": [{"name": "Bedsheets", "child": [], "code": "1a5a13", "representation": "home-furniture/furnishing/bedsheets", "path": ["Home & Furniture", "Furnishing", "Bedsheets"]}, {"name": "Curtains", "child": [], "code": "be5d0b", "representation": "home-furniture/furnishing/curtains", "path": ["Home & Furniture", "Furnishing", "Curtains"]}, {"name": "Cushions & Pillows", "child": [], "code": "ed4fbf", "representation": "home-furniture/furnishing/cushions-pillows", "path": ["Home & Furniture", "Furnishing", "Cushions & Pillows"]}, {"name": "Blankets", "child": [], "code": "e1451f", "representation": "home-furniture/furnishing/blankets", "path": ["Home & Furniture", "Furnishing", "Blankets"]}, {"name": "Bath Towels", "child": [], "code": "06da33", "representation": "home-furniture/furnishing/bath-towels", "path": ["Home & Furniture", "Furnishing", "Bath Towels"]}, {"name": "Kitchen & Table Linen", "child": [], "code": "7d4830", "representation": "home-furniture/furnishing/kitchen-table-linen", "path": ["Home & Furniture", "Furnishing", "Kitchen & Table Linen"]}, {"name": "Floor Coverings", "child": [], "code": "07ad41", "representation": "home-furniture/furnishing/floor-coverings", "path": ["Home & Furniture", "Furnishing", "Floor Coverings"]}], "code": "92549b", "representation": "home-furniture/furnishing", "path": ["Home & Furniture", "Furnishing"]}, {"name": "Smart Home Automation", "child": [{"name": "Smart Security System", "child": [], "code": "8b932a", "representation": "home-furniture/smart-home-automation/smart-security-system", "path": ["Home & Furniture", "Smart Home Automation", "Smart Security System"]}, {"name": "Smart Door Locks", "child": [], "code": "4ca5c8", "representation": "home-furniture/smart-home-automation/smart-door-locks", "path": ["Home & Furniture", "Smart Home Automation", "Smart Door Locks"]}], "code": "a732b0", "representation": "home-furniture/smart-home-automation", "path": ["Home & Furniture", "Smart Home Automation"]}, {"name": "Home Improvement", "child": [{"name": "Tools & Measuring Equipments", "child": [], "code": "34cf69", "representation": "home-furniture/home-improvement/tools-measuring-equipments", "path": ["Home & Furniture", "Home Improvement", "Tools & Measuring Equipments"]}, {"name": "Home Utilities & Organizers", "child": [], "code": "649bd6", "representation": "home-furniture/home-improvement/home-utilities-organizers", "path": ["Home & Furniture", "Home Improvement", "Home Utilities & Organizers"]}, {"name": "Lawn & Gardening", "child": [], "code": "df8da4", "representation": "home-furniture/home-improvement/lawn-gardening", "path": ["Home & Furniture", "Home Improvement", "Lawn & Gardening"]}, {"name": "Bathroom & Kitchen Fittings", "child": [], "code": "801616", "representation": "home-furniture/home-improvement/bathroom-kitchen-fittings", "path": ["Home & Furniture", "Home Improvement", "Bathroom & Kitchen Fittings"]}], "code": "191726", "representation": "home-furniture/home-improvement", "path": ["Home & Furniture", "Home Improvement"]}, {"name": "Home Decor", "child": [{"name": "Paintings", "child": [], "code": "04a028", "representation": "home-furniture/home-decor/paintings", "path": ["Home & Furniture", "Home Decor", "Paintings"]}, {"name": "Clocks", "child": [], "code": "86e5ff", "representation": "home-furniture/home-decor/clocks", "path": ["Home & Furniture", "Home Decor", "Clocks"]}, {"name": "Wall Shelves", "child": [], "code": "22979e", "representation": "home-furniture/home-decor/wall-shelves", "path": ["Home & Furniture", "Home Decor", "Wall Shelves"]}, {"name": "Stickers", "child": [], "code": "285cca", "representation": "home-furniture/home-decor/stickers", "path": ["Home & Furniture", "Home Decor", "Stickers"]}, {"name": "Showpieces & Figurines", "child": [], "code": "8d7221", "representation": "home-furniture/home-decor/showpieces-figurines", "path": ["Home & Furniture", "Home Decor", "Showpieces & Figurines"]}], "code": "9cf1be", "representation": "home-furniture/home-decor", "path": ["Home & Furniture", "Home Decor"]}, {"name": "Home Lighting", "child": [{"name": "Bulbs", "child": [], "code": "09c762", "representation": "home-furniture/home-lighting/bulbs", "path": ["Home & Furniture", "Home Lighting", "Bulbs"]}, {"name": "Wall Lamp", "child": [], "code": "d84eb3", "representation": "home-furniture/home-lighting/wall-lamp", "path": ["Home & Furniture", "Home Lighting", "Wall Lamp"]}, {"name": "Table Lamp", "child": [], "code": "3cbd38", "representation": "home-furniture/home-lighting/table-lamp", "path": ["Home & Furniture", "Home Lighting", "Table Lamp"]}, {"name": "Ceiling Lamp", "child": [], "code": "d19a25", "representation": "home-furniture/home-lighting/ceiling-lamp", "path": ["Home & Furniture", "Home Lighting", "Ceiling Lamp"]}, {"name": "Ceiling Lamp", "child": [], "code": "d19a25", "representation": "home-furniture/home-lighting/ceiling-lamp", "path": ["Home & Furniture", "Home Lighting", "Ceiling Lamp"]}], "code": "817168", "representation": "home-furniture/home-lighting", "path": ["Home & Furniture", "Home Lighting"]}, {"name": "Festive Decor & Gifts", "child": [], "code": "ffa0fe", "representation": "home-furniture/festive-decor-gifts", "path": ["Home & Furniture", "Festive Decor & Gifts"]}, {"name": "Pet Supplies", "child": [{"name": "Dogs", "child": [], "code": "f32633", "representation": "home-furniture/pet-supplies/dogs", "path": ["Home & Furniture", "Pet Supplies", "Dogs"]}, {"name": "Cats", "child": [], "code": "5bffcb", "representation": "home-furniture/pet-supplies/cats", "path": ["Home & Furniture", "Pet Supplies", "Cats"]}, {"name": "Fish & Aquatics", "child": [], "code": "9d4698", "representation": "home-furniture/pet-supplies/fish-aquatics", "path": ["Home & Furniture", "Pet Supplies", "Fish & Aquatics"]}], "code": "dd9801", "representation": "home-furniture/pet-supplies", "path": ["Home & Furniture", "Pet Supplies"]}, {"name": "Durability Certified Furniture", "child": [], "code": "7f0b78", "representation": "home-furniture/durability-certified-furniture", "path": ["Home & Furniture", "Durability Certified Furniture"]}], "code": "77846e", "representation": "home-furniture", "path": ["Home & Furniture"]}, {"name": "Sports", "child": [{"name": "Cricket", "child": [], "code": "a0bd6b", "representation": "sports/cricket", "path": ["Sports", "Cricket"]}, {"name": "Badminton", "child": [], "code": "dbda72", "representation": "sports/badminton", "path": ["Sports", "Badminton"]}, {"name": "Cycling", "child": [], "code": "59acee", "representation": "sports/cycling", "path": ["Sports", "Cycling"]}, {"name": "Football", "child": [], "code": "a0e737", "representation": "sports/football", "path": ["Sports", "Football"]}, {"name": "Skating", "child": [], "code": "c61054", "representation": "sports/skating", "path": ["Sports", "Skating"]}, {"name": "Camping & Hiking", "child": [], "code": "23187e", "representation": "sports/camping-hiking", "path": ["Sports", "Camping & Hiking"]}, {"name": "Swimming", "child": [], "code": "5b4c90", "representation": "sports/swimming", "path": ["Sports", "Swimming"]}], "code": "088495", "representation": "sports", "path": ["Sports"]}, {"name": "Exercise Fitness", "child": [{"name": "Cardio Equipment", "child": [], "code": "7cb081", "representation": "exercise-fitness/cardio-equipment", "path": ["Exercise Fitness", "Cardio Equipment"]}, {"name": "Home Gyms", "child": [], "code": "41685e", "representation": "exercise-fitness/home-gyms", "path": ["Exercise Fitness", "Home Gyms"]}, {"name": "Support", "child": [], "code": "f9804d", "representation": "exercise-fitness/support", "path": ["Exercise Fitness", "Support"]}, {"name": "Dumbbells", "child": [], "code": "56a718", "representation": "exercise-fitness/dumbbells", "path": ["Exercise Fitness", "Dumbbells"]}, {"name": "Ab Exercisers", "child": [], "code": "7964ff", "representation": "exercise-fitness/ab-exercisers", "path": ["Exercise Fitness", "Ab Exercisers"]}, {"name": "Shakers & Sippers", "child": [], "code": "d9f574", "representation": "exercise-fitness/shakers-sippers", "path": ["Exercise Fitness", "Shakers & Sippers"]}, {"name": "Yoga Mat", "child": [], "code": "3488b0", "representation": "exercise-fitness/yoga-mat", "path": ["Exercise Fitness", "Yoga Mat"]}, {"name": "Gym Gloves", "child": [], "code": "e51856", "representation": "exercise-fitness/gym-gloves", "path": ["Exercise Fitness", "Gym Gloves"]}], "code": "e157f2", "representation": "exercise-fitness", "path": ["Exercise Fitness"]}, {"name": "Books & Stationery", "child": [{"name": "Books", "child": [{"name": "Entrance Exams", "child": [], "code": "0e3436", "representation": "books-stationery/books/entrance-exams", "path": ["Books & Stationery", "Books", "Entrance Exams"]}, {"name": "Academics", "child": [], "code": "04320d", "representation": "books-stationery/books/academics", "path": ["Books & Stationery", "Books", "Academics"]}, {"name": "Literature & Fiction", "child": [], "code": "044188", "representation": "books-stationery/books/literature-fiction", "path": ["Books & Stationery", "Books", "Literature & Fiction"]}, {"name": "Non Fiction", "child": [], "code": "dae2ad", "representation": "books-stationery/books/non-fiction", "path": ["Books & Stationery", "Books", "Non Fiction"]}, {"name": "Young Readers", "child": [], "code": "768c83", "representation": "books-stationery/books/young-readers", "path": ["Books & Stationery", "Books", "Young Readers"]}, {"name": "Self-Help", "child": [], "code": "ef2d3c", "representation": "books-stationery/books/self-help", "path": ["Books & Stationery", "Books", "Self-Help"]}, {"name": "E-Learning", "child": [], "code": "d33f83", "representation": "books-stationery/books/e-learning", "path": ["Books & Stationery", "Books", "E-Learning"]}, {"name": "Preorders", "child": [], "code": "3105ae", "representation": "books-stationery/books/preorders", "path": ["Books & Stationery", "Books", "Preorders"]}, {"name": "Indian Languages", "child": [], "code": "f05b1b", "representation": "books-stationery/books/indian-languages", "path": ["Books & Stationery", "Books", "Indian Languages"]}], "code": "9d3e69", "representation": "books-stationery/books", "path": ["Books & Stationery", "Books"]}, {"name": "Stationery", "child": [{"name": "Pens", "child": [], "code": "4b3159", "representation": "books-stationery/stationery/pens", "path": ["Books & Stationery", "Stationery", "Pens"]}, {"name": "Diaries", "child": [], "code": "36ea9b", "representation": "books-stationery/stationery/diaries", "path": ["Books & Stationery", "Stationery", "Diaries"]}, {"name": "Card Holders", "child": [], "code": "21dd90", "representation": "books-stationery/stationery/card-holders", "path": ["Books & Stationery", "Stationery", "Card Holders"]}, {"name": "Desk Organizers", "child": [], "code": "7d5c60", "representation": "books-stationery/stationery/desk-organizers", "path": ["Books & Stationery", "Stationery", "Desk Organizers"]}, {"name": "Calculators", "child": [], "code": "da555b", "representation": "books-stationery/stationery/calculators", "path": ["Books & Stationery", "Stationery", "Calculators"]}, {"name": "Key Chains", "child": [], "code": "d13399", "representation": "books-stationery/stationery/key-chains", "path": ["Books & Stationery", "Stationery", "Key Chains"]}], "code": "6b3fa2", "representation": "books-stationery/stationery", "path": ["Books & Stationery", "Stationery"]}], "code": "e903a2", "representation": "books-stationery", "path": ["Books & Stationery"]}, {"name": "Auto Accessories", "child": [{"name": "Helmets & Riding Gears", "child": [], "code": "8cf56c", "representation": "auto-accessories/helmets-riding-gears", "path": ["Auto Accessories", "Helmets & Riding Gears"]}, {"name": "Car Audio/Video", "child": [], "code": "708dcf", "representation": "auto-accessories/car-audiovideo", "path": ["Auto Accessories", "Car Audio/Video"]}, {"name": "Car Mobile Accessories", "child": [], "code": "715e11", "representation": "auto-accessories/car-mobile-accessories", "path": ["Auto Accessories", "Car Mobile Accessories"]}, {"name": "Car & Bike Care", "child": [], "code": "4e66e6", "representation": "auto-accessories/car-bike-care", "path": ["Auto Accessories", "Car & Bike Care"]}, {"name": "Vehicle Lubricants", "child": [], "code": "9163d2", "representation": "auto-accessories/vehicle-lubricants", "path": ["Auto Accessories", "Vehicle Lubricants"]}], "code": "427560", "representation": "auto-accessories", "path": ["Auto Accessories"]}, {"name": "Medical Supplies", "child": [{"name": "Pregnancy & Fertility Kits", "child": [], "code": "e12a12", "representation": "medical-supplies/pregnancy-fertility-kits", "path": ["Medical Supplies", "Pregnancy & Fertility Kits"]}, {"name": "Hot Water Bag", "child": [], "code": "2bbfdf", "representation": "medical-supplies/hot-water-bag", "path": ["Medical Supplies", "Hot Water Bag"]}], "code": "a23eeb", "representation": "medical-supplies", "path": ["Medical Supplies"]}, {"name": "Grocery", "child": [{"name": "Staples", "child": [{"name": "Dal & Pulses", "child": [{"name": "Toor Dal", "child": [], "code": "d56475", "representation": "grocery/staples/dal-pulses/toor-dal", "path": ["Grocery", "Staples", "Dal & Pulses", "Toor Dal"]}, {"name": "Urad Dal", "child": [], "code": "a290c3", "representation": "grocery/staples/dal-pulses/urad-dal", "path": ["Grocery", "Staples", "Dal & Pulses", "Urad Dal"]}, {"name": "Moong Dal", "child": [], "code": "1dbf50", "representation": "grocery/staples/dal-pulses/moong-dal", "path": ["Grocery", "Staples", "Dal & Pulses", "Moong Dal"]}, {"name": "Chana Dal", "child": [], "code": "eb15b8", "representation": "grocery/staples/dal-pulses/chana-dal", "path": ["Grocery", "Staples", "Dal & Pulses", "Chana Dal"]}, {"name": "Other Pulses", "child": [], "code": "e934a7", "representation": "grocery/staples/dal-pulses/other-pulses", "path": ["Grocery", "Staples", "Dal & Pulses", "Other Pulses"]}, {"name": "Soya Chunks", "child": [], "code": "eb849f", "representation": "grocery/staples/dal-pulses/soya-chunks", "path": ["Grocery", "Staples", "Dal & Pulses", "Soya Chunks"]}], "code": "ca13b7", "representation": "grocery/staples/dal-pulses", "path": ["Grocery", "Staples", "Dal & Pulses"]}, {"name": "Ghee & Oils", "child": [{"name": "Blended Oil", "child": [], "code": "d94c90", "representation": "grocery/staples/ghee-oils/blended-oil", "path": ["Grocery", "Staples", "Ghee & Oils", "Blended Oil"]}, {"name": "Ghee", "child": [], "code": "4dc9d2", "representation": "grocery/staples/ghee-oils/ghee", "path": ["Grocery", "Staples", "Ghee & Oils", "Ghee"]}, {"name": "Sunflower Oil", "child": [], "code": "0478df", "representation": "grocery/staples/ghee-oils/sunflower-oil", "path": ["Grocery", "Staples", "Ghee & Oils", "Sunflower Oil"]}, {"name": "Rice Bran", "child": [], "code": "da0ca4", "representation": "grocery/staples/ghee-oils/rice-bran", "path": ["Grocery", "Staples", "Ghee & Oils", "Rice Bran"]}, {"name": "Olive Oil", "child": [], "code": "1893aa", "representation": "grocery/staples/ghee-oils/olive-oil", "path": ["Grocery", "Staples", "Ghee & Oils", "Olive Oil"]}, {"name": "Groundnut Oil", "child": [], "code": "e4eb2c", "representation": "grocery/staples/ghee-oils/groundnut-oil", "path": ["Grocery", "Staples", "Ghee & Oils", "Groundnut Oil"]}, {"name": "Mustard Oil", "child": [], "code": "723a80", "representation": "grocery/staples/ghee-oils/mustard-oil", "path": ["Grocery", "Staples", "Ghee & Oils", "Mustard Oil"]}, {"name": "Other Oils", "child": [], "code": "a1ac03", "representation": "grocery/staples/ghee-oils/other-oils", "path": ["Grocery", "Staples", "Ghee & Oils", "Other Oils"]}], "code": "eb01fd", "representation": "grocery/staples/ghee-oils", "path": ["Grocery", "Staples", "Ghee & Oils"]}, {"name": "Atta & Flours", "child": [{"name": "Wheat Atta", "child": [], "code": "5a1313", "representation": "grocery/staples/atta-flours/wheat-atta", "path": ["Grocery", "Staples", "Atta & Flours", "Wheat Atta"]}, {"name": "Rice Flour", "child": [], "code": "8a0b55", "representation": "grocery/staples/atta-flours/rice-flour", "path": ["Grocery", "Staples", "Atta & Flours", "Rice Flour"]}, {"name": "Maida", "child": [], "code": "0105e9", "representation": "grocery/staples/atta-flours/maida", "path": ["Grocery", "Staples", "Atta & Flours", "Maida"]}, {"name": "Other Flours", "child": [], "code": "69bca1", "representation": "grocery/staples/atta-flours/other-flours", "path": ["Grocery", "Staples", "Atta & Flours", "Other Flours"]}, {"name": "Grains", "child": [], "code": "0cbe4b", "representation": "grocery/staples/atta-flours/grains", "path": ["Grocery", "Staples", "Atta & Flours", "Grains"]}, {"name": "Rava & Sooji", "child": [], "code": "6fce34", "representation": "grocery/staples/atta-flours/rava-sooji", "path": ["Grocery", "Staples", "Atta & Flours", "Rava & Sooji"]}, {"name": "Besan", "child": [], "code": "f3ad34", "representation": "grocery/staples/atta-flours/besan", "path": ["Grocery", "Staples", "Atta & Flours", "Besan"]}], "code": "388af8", "representation": "grocery/staples/atta-flours", "path": ["Grocery", "Staples", "Atta & Flours"]}, {"name": "Masalas & Spices", "child": [{"name": "Whole Spices", "child": [], "code": "7b6f4f", "representation": "grocery/staples/masalas-spices/whole-spices", "path": ["Grocery", "Staples", "Masalas & Spices", "Whole Spices"]}, {"name": "Powdered Spices", "child": [], "code": "8b5c32", "representation": "grocery/staples/masalas-spices/powdered-spices", "path": ["Grocery", "Staples", "Masalas & Spices", "Powdered Spices"]}, {"name": "Ready Masalas", "child": [], "code": "bedb76", "representation": "grocery/staples/masalas-spices/ready-masalas", "path": ["Grocery", "Staples", "Masalas & Spices", "Ready Masalas"]}, {"name": "Cooking Pastes & Purees", "child": [], "code": "b50ac0", "representation": "grocery/staples/masalas-spices/cooking-pastes-purees", "path": ["Grocery", "Staples", "Masalas & Spices", "Cooking Pastes & Purees"]}, {"name": "Herbs & Seasonings", "child": [], "code": "ca5ecd", "representation": "grocery/staples/masalas-spices/herbs-seasonings", "path": ["Grocery", "Staples", "Masalas & Spices", "Herbs & Seasonings"]}], "code": "94ac5c", "representation": "grocery/staples/masalas-spices", "path": ["Grocery", "Staples", "Masalas & Spices"]}, {"name": "Rice & Rice Products", "child": [{"name": "Sona Masoori Rice", "child": [], "code": "a0c011", "representation": "grocery/staples/rice-rice-products/sona-masoori-rice", "path": ["Grocery", "Staples", "Rice & Rice Products", "Sona Masoori Rice"]}, {"name": "Other Rice Varieties", "child": [], "code": "9687fd", "representation": "grocery/staples/rice-rice-products/other-rice-varieties", "path": ["Grocery", "Staples", "Rice & Rice Products", "Other Rice Varieties"]}, {"name": "Poha", "child": [], "code": "9ac397", "representation": "grocery/staples/rice-rice-products/poha", "path": ["Grocery", "Staples", "Rice & Rice Products", "Poha"]}, {"name": "Puffed Rice", "child": [], "code": "2bd96a", "representation": "grocery/staples/rice-rice-products/puffed-rice", "path": ["Grocery", "Staples", "Rice & Rice Products", "Puffed Rice"]}, {"name": "Basmati Rice", "child": [], "code": "1cad8d", "representation": "grocery/staples/rice-rice-products/basmati-rice", "path": ["Grocery", "Staples", "Rice & Rice Products", "Basmati Rice"]}], "code": "483aa1", "representation": "grocery/staples/rice-rice-products", "path": ["Grocery", "Staples", "Rice & Rice Products"]}, {"name": "Dry Fruits, Nuts & Seeds", "child": [{"name": "Cashew Nuts", "child": [], "code": "d107e5", "representation": "grocery/staples/dry-fruits-nuts-seeds/cashew-nuts", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds", "Cashew Nuts"]}, {"name": "Almonds", "child": [], "code": "83f603", "representation": "grocery/staples/dry-fruits-nuts-seeds/almonds", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds", "Almonds"]}, {"name": "Dates & Raisins", "child": [], "code": "49977d", "representation": "grocery/staples/dry-fruits-nuts-seeds/dates-raisins", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds", "Dates & Raisins"]}, {"name": "Dried Fruits", "child": [], "code": "37bdb8", "representation": "grocery/staples/dry-fruits-nuts-seeds/dried-fruits", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds", "Dried Fruits"]}, {"name": "Edible Seeds", "child": [], "code": "5d8727", "representation": "grocery/staples/dry-fruits-nuts-seeds/edible-seeds", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds", "Edible Seeds"]}, {"name": "Other Nuts", "child": [], "code": "ff8db0", "representation": "grocery/staples/dry-fruits-nuts-seeds/other-nuts", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds", "Other Nuts"]}], "code": "f4aeb4", "representation": "grocery/staples/dry-fruits-nuts-seeds", "path": ["Grocery", "Staples", "Dry Fruits, Nuts & Seeds"]}, {"name": "Sugar, Jaggery & Salt", "child": [{"name": "Salt", "child": [], "code": "894e97", "representation": "grocery/staples/sugar-jaggery-salt/salt", "path": ["Grocery", "Staples", "Sugar, Jaggery & Salt", "Salt"]}, {"name": "Sugar", "child": [], "code": "ab2aeb", "representation": "grocery/staples/sugar-jaggery-salt/sugar", "path": ["Grocery", "Staples", "Sugar, Jaggery & Salt", "Sugar"]}, {"name": "Sugar Free", "child": [], "code": "e256cf", "representation": "grocery/staples/sugar-jaggery-salt/sugar-free", "path": ["Grocery", "Staples", "Sugar, Jaggery & Salt", "Sugar Free"]}, {"name": "Jaggery", "child": [], "code": "056415", "representation": "grocery/staples/sugar-jaggery-salt/jaggery", "path": ["Grocery", "Staples", "Sugar, Jaggery & Salt", "Jaggery"]}], "code": "e00d68", "representation": "grocery/staples/sugar-jaggery-salt", "path": ["Grocery", "Staples", "Sugar, Jaggery & Salt"]}], "code": "8aead9", "representation": "grocery/staples", "path": ["Grocery", "Staples"]}, {"name": "Snacks & Beverages", "child": [{"name": "Biscuits", "child": [{"name": "Cookies", "child": [], "code": "7c05df", "representation": "grocery/snacks-beverages/biscuits/cookies", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Cookies"]}, {"name": "Cream Biscuits", "child": [], "code": "7ae932", "representation": "grocery/snacks-beverages/biscuits/cream-biscuits", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Cream Biscuits"]}, {"name": "Marie Digestive", "child": [], "code": "119ec9", "representation": "grocery/snacks-beverages/biscuits/marie-digestive", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Marie Digestive"]}, {"name": "Milk & Glucose", "child": [], "code": "1065ff", "representation": "grocery/snacks-beverages/biscuits/milk-glucose", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Milk & Glucose"]}, {"name": "Salted", "child": [], "code": "daf4a4", "representation": "grocery/snacks-beverages/biscuits/salted", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Salted"]}, {"name": "Cheeslets", "child": [], "code": "8061d4", "representation": "grocery/snacks-beverages/biscuits/cheeslets", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Cheeslets"]}, {"name": "Wafers & Rusk", "child": [], "code": "f615be", "representation": "grocery/snacks-beverages/biscuits/wafers-rusk", "path": ["Grocery", "Snacks & Beverages", "Biscuits", "Wafers & Rusk"]}], "code": "b0a1e1", "representation": "grocery/snacks-beverages/biscuits", "path": ["Grocery", "Snacks & Beverages", "Biscuits"]}, {"name": "Chips,Namkeen & Snacks", "child": [{"name": "Namkeen", "child": [], "code": "994cf3", "representation": "grocery/snacks-beverages/chipsnamkeen-snacks/namkeen", "path": ["Grocery", "Snacks & Beverages", "Chips,Namkeen & Snacks", "Namkeen"]}, {"name": "Chips", "child": [], "code": "7deb6b", "representation": "grocery/snacks-beverages/chipsnamkeen-snacks/chips", "path": ["Grocery", "Snacks & Beverages", "Chips,Namkeen & Snacks", "Chips"]}, {"name": "Popcorn, Papad & Fryums", "child": [], "code": "8eb541", "representation": "grocery/snacks-beverages/chipsnamkeen-snacks/popcorn-papad-fryums", "path": ["Grocery", "Snacks & Beverages", "Chips,Namkeen & Snacks", "Popcorn, Papad & Fryums"]}, {"name": "Snacky Nuts", "child": [], "code": "b805f6", "representation": "grocery/snacks-beverages/chipsnamkeen-snacks/snacky-nuts", "path": ["Grocery", "Snacks & Beverages", "Chips,Namkeen & Snacks", "Snacky Nuts"]}], "code": "ffb21b", "representation": "grocery/snacks-beverages/chipsnamkeen-snacks", "path": ["Grocery", "Snacks & Beverages", "Chips,Namkeen & Snacks"]}, {"name": "Tea", "child": [{"name": "Tea", "child": [], "code": "ace86c", "representation": "grocery/snacks-beverages/tea/tea", "path": ["Grocery", "Snacks & Beverages", "Tea", "Tea"]}, {"name": "Tea Bags", "child": [], "code": "34f94c", "representation": "grocery/snacks-beverages/tea/tea-bags", "path": ["Grocery", "Snacks & Beverages", "Tea", "Tea Bags"]}, {"name": "Green Tea", "child": [], "code": "f13d82", "representation": "grocery/snacks-beverages/tea/green-tea", "path": ["Grocery", "Snacks & Beverages", "Tea", "Green Tea"]}, {"name": "Ice Tea", "child": [], "code": "abcdfc", "representation": "grocery/snacks-beverages/tea/ice-tea", "path": ["Grocery", "Snacks & Beverages", "Tea", "Ice Tea"]}], "code": "e69ff0", "representation": "grocery/snacks-beverages/tea", "path": ["Grocery", "Snacks & Beverages", "Tea"]}, {"name": "Coffee", "child": [{"name": "Roast & Ground", "child": [], "code": "75e10c", "representation": "grocery/snacks-beverages/coffee/roast-ground", "path": ["Grocery", "Snacks & Beverages", "Coffee", "Roast & Ground"]}, {"name": "Instant Coffee", "child": [], "code": "b91e01", "representation": "grocery/snacks-beverages/coffee/instant-coffee", "path": ["Grocery", "Snacks & Beverages", "Coffee", "Instant Coffee"]}], "code": "511793", "representation": "grocery/snacks-beverages/coffee", "path": ["Grocery", "Snacks & Beverages", "Coffee"]}, {"name": "Juices", "child": [{"name": "Mixed Fruit Juices", "child": [], "code": "c5141a", "representation": "grocery/snacks-beverages/juices/mixed-fruit-juices", "path": ["Grocery", "Snacks & Beverages", "Juices", "Mixed Fruit Juices"]}, {"name": "Guava Juices", "child": [], "code": "e23c0a", "representation": "grocery/snacks-beverages/juices/guava-juices", "path": ["Grocery", "Snacks & Beverages", "Juices", "Guava Juices"]}, {"name": "Orange Juice", "child": [], "code": "6f76d8", "representation": "grocery/snacks-beverages/juices/orange-juice", "path": ["Grocery", "Snacks & Beverages", "Juices", "Orange Juice"]}, {"name": "Lychee Juices", "child": [], "code": "b19330", "representation": "grocery/snacks-beverages/juices/lychee-juices", "path": ["Grocery", "Snacks & Beverages", "Juices", "Lychee Juices"]}, {"name": "Apple Juice", "child": [], "code": "bd347e", "representation": "grocery/snacks-beverages/juices/apple-juice", "path": ["Grocery", "Snacks & Beverages", "Juices", "Apple Juice"]}, {"name": "Fruit Drinks", "child": [], "code": "b47746", "representation": "grocery/snacks-beverages/juices/fruit-drinks", "path": ["Grocery", "Snacks & Beverages", "Juices", "Fruit Drinks"]}, {"name": "Cold Pressed Juices", "child": [], "code": "299579", "representation": "grocery/snacks-beverages/juices/cold-pressed-juices", "path": ["Grocery", "Snacks & Beverages", "Juices", "Cold Pressed Juices"]}], "code": "7c6669", "representation": "grocery/snacks-beverages/juices", "path": ["Grocery", "Snacks & Beverages", "Juices"]}, {"name": "Health Drink Mix", "child": [], "code": "dba3c3", "representation": "grocery/snacks-beverages/health-drink-mix", "path": ["Grocery", "Snacks & Beverages", "Health Drink Mix"]}, {"name": "Soft Drinks", "child": [{"name": "Cold Drinks", "child": [], "code": "8d6ea8", "representation": "grocery/snacks-beverages/soft-drinks/cold-drinks", "path": ["Grocery", "Snacks & Beverages", "Soft Drinks", "Cold Drinks"]}, {"name": "Energy & Sports Drinks", "child": [], "code": "efa290", "representation": "grocery/snacks-beverages/soft-drinks/energy-sports-drinks", "path": ["Grocery", "Snacks & Beverages", "Soft Drinks", "Energy & Sports Drinks"]}, {"name": "Non Alcoholic Drinks", "child": [], "code": "87b634", "representation": "grocery/snacks-beverages/soft-drinks/non-alcoholic-drinks", "path": ["Grocery", "Snacks & Beverages", "Soft Drinks", "Non Alcoholic Drinks"]}, {"name": "Soda & Tonic Water", "child": [], "code": "7c7f22", "representation": "grocery/snacks-beverages/soft-drinks/soda-tonic-water", "path": ["Grocery", "Snacks & Beverages", "Soft Drinks", "Soda & Tonic Water"]}], "code": "b26151", "representation": "grocery/snacks-beverages/soft-drinks", "path": ["Grocery", "Snacks & Beverages", "Soft Drinks"]}, {"name": "Instant Drink Mixes, Squash & Syrups", "child": [{"name": "Instant Drink Mixes", "child": [], "code": "4ccb2f", "representation": "grocery/snacks-beverages/instant-drink-mixes-squash-syrups/instant-drink-mixes", "path": ["Grocery", "Snacks & Beverages", "Instant Drink Mixes, Squash & Syrups", "Instant Drink Mixes"]}, {"name": "Squash", "child": [], "code": "a7e7c7", "representation": "grocery/snacks-beverages/instant-drink-mixes-squash-syrups/squash", "path": ["Grocery", "Snacks & Beverages", "Instant Drink Mixes, Squash & Syrups", "Squash"]}, {"name": "Syrups", "child": [], "code": "ce9313", "representation": "grocery/snacks-beverages/instant-drink-mixes-squash-syrups/syrups", "path": ["Grocery", "Snacks & Beverages", "Instant Drink Mixes, Squash & Syrups", "Syrups"]}, {"name": "Fruit Crush", "child": [], "code": "4b8a7c", "representation": "grocery/snacks-beverages/instant-drink-mixes-squash-syrups/fruit-crush", "path": ["Grocery", "Snacks & Beverages", "Instant Drink Mixes, Squash & Syrups", "Fruit Crush"]}], "code": "57fb48", "representation": "grocery/snacks-beverages/instant-drink-mixes-squash-syrups", "path": ["Grocery", "Snacks & Beverages", "Instant Drink Mixes, Squash & Syrups"]}], "code": "a47821", "representation": "grocery/snacks-beverages", "path": ["Grocery", "Snacks & Beverages"]}, {"name": "Packaged Food", "child": [{"name": "Breakfast Cereals", "child": [{"name": "Flakes", "child": [], "code": "cf462e", "representation": "grocery/packaged-food/breakfast-cereals/flakes", "path": ["Grocery", "Packaged Food", "Breakfast Cereals", "Flakes"]}, {"name": "Muesli", "child": [], "code": "c30ce1", "representation": "grocery/packaged-food/breakfast-cereals/muesli", "path": ["Grocery", "Packaged Food", "Breakfast Cereals", "Muesli"]}, {"name": "Oats", "child": [], "code": "281f6b", "representation": "grocery/packaged-food/breakfast-cereals/oats", "path": ["Grocery", "Packaged Food", "Breakfast Cereals", "Oats"]}, {"name": "Cereal Bars", "child": [], "code": "174c60", "representation": "grocery/packaged-food/breakfast-cereals/cereal-bars", "path": ["Grocery", "Packaged Food", "Breakfast Cereals", "Cereal Bars"]}], "code": "fab1c6", "representation": "grocery/packaged-food/breakfast-cereals", "path": ["Grocery", "Packaged Food", "Breakfast Cereals"]}, {"name": "Noodles & Pasta", "child": [{"name": "Noodles", "child": [], "code": "c08cd5", "representation": "grocery/packaged-food/noodles-pasta/noodles", "path": ["Grocery", "Packaged Food", "Noodles & Pasta", "Noodles"]}, {"name": "Pasta", "child": [], "code": "9f1844", "representation": "grocery/packaged-food/noodles-pasta/pasta", "path": ["Grocery", "Packaged Food", "Noodles & Pasta", "Pasta"]}, {"name": "Vermicelli", "child": [], "code": "f461f2", "representation": "grocery/packaged-food/noodles-pasta/vermicelli", "path": ["Grocery", "Packaged Food", "Noodles & Pasta", "Vermicelli"]}], "code": "adb005", "representation": "grocery/packaged-food/noodles-pasta", "path": ["Grocery", "Packaged Food", "Noodles & Pasta"]}, {"name": "Ketchups & Spreads", "child": [{"name": "Ketchups", "child": [], "code": "dd93cc", "representation": "grocery/packaged-food/ketchups-spreads/ketchups", "path": ["Grocery", "Packaged Food", "Ketchups & Spreads", "Ketchups"]}, {"name": "Dips & Spreads", "child": [], "code": "07e54d", "representation": "grocery/packaged-food/ketchups-spreads/dips-spreads", "path": ["Grocery", "Packaged Food", "Ketchups & Spreads", "Dips & Spreads"]}, {"name": "Dressing Sauce", "child": [], "code": "9d30b1", "representation": "grocery/packaged-food/ketchups-spreads/dressing-sauce", "path": ["Grocery", "Packaged Food", "Ketchups & Spreads", "Dressing Sauce"]}], "code": "8848bf", "representation": "grocery/packaged-food/ketchups-spreads", "path": ["Grocery", "Packaged Food", "Ketchups & Spreads"]}, {"name": "Chocolates & Sweets", "child": [{"name": "Chocolates", "child": [], "code": "e80175", "representation": "grocery/packaged-food/chocolates-sweets/chocolates", "path": ["Grocery", "Packaged Food", "Chocolates & Sweets", "Chocolates"]}, {"name": "Sweets & Mithai", "child": [], "code": "d0541d", "representation": "grocery/packaged-food/chocolates-sweets/sweets-mithai", "path": ["Grocery", "Packaged Food", "Chocolates & Sweets", "Sweets & Mithai"]}, {"name": "Candy & Gums", "child": [], "code": "3cf499", "representation": "grocery/packaged-food/chocolates-sweets/candy-gums", "path": ["Grocery", "Packaged Food", "Chocolates & Sweets", "Candy & Gums"]}, {"name": "Mouth Freshener", "child": [], "code": "fdf9f4", "representation": "grocery/packaged-food/chocolates-sweets/mouth-freshener", "path": ["Grocery", "Packaged Food", "Chocolates & Sweets", "Mouth Freshener"]}, {"name": "Cake", "child": [], "code": "fb1fe9", "representation": "grocery/packaged-food/chocolates-sweets/cake", "path": ["Grocery", "Packaged Food", "Chocolates & Sweets", "Cake"]}], "code": "e8246c", "representation": "grocery/packaged-food/chocolates-sweets", "path": ["Grocery", "Packaged Food", "Chocolates & Sweets"]}, {"name": "Jams & Honey", "child": [{"name": "Jams", "child": [], "code": "486f5c", "representation": "grocery/packaged-food/jams-honey/jams", "path": ["Grocery", "Packaged Food", "Jams & Honey", "Jams"]}, {"name": "Honey", "child": [], "code": "364233", "representation": "grocery/packaged-food/jams-honey/honey", "path": ["Grocery", "Packaged Food", "Jams & Honey", "Honey"]}], "code": "437b89", "representation": "grocery/packaged-food/jams-honey", "path": ["Grocery", "Packaged Food", "Jams & Honey"]}, {"name": "Pickles & Chutney", "child": [{"name": "Pickles", "child": [], "code": "c14cea", "representation": "grocery/packaged-food/pickles-chutney/pickles", "path": ["Grocery", "Packaged Food", "Pickles & Chutney", "Pickles"]}, {"name": "Chutney", "child": [], "code": "4b35a3", "representation": "grocery/packaged-food/pickles-chutney/chutney", "path": ["Grocery", "Packaged Food", "Pickles & Chutney", "Chutney"]}], "code": "61d8fe", "representation": "grocery/packaged-food/pickles-chutney", "path": ["Grocery", "Packaged Food", "Pickles & Chutney"]}, {"name": "Ready To Cook", "child": [{"name": "Soups", "child": [], "code": "5155c5", "representation": "grocery/packaged-food/ready-to-cook/soups", "path": ["Grocery", "Packaged Food", "Ready To Cook", "Soups"]}, {"name": "Ready Mixes", "child": [], "code": "cb7e62", "representation": "grocery/packaged-food/ready-to-cook/ready-mixes", "path": ["Grocery", "Packaged Food", "Ready To Cook", "Ready Mixes"]}, {"name": "Ready Meals", "child": [], "code": "610eeb", "representation": "grocery/packaged-food/ready-to-cook/ready-meals", "path": ["Grocery", "Packaged Food", "Ready To Cook", "Ready Meals"]}, {"name": "Canned Food", "child": [], "code": "6f11c0", "representation": "grocery/packaged-food/ready-to-cook/canned-food", "path": ["Grocery", "Packaged Food", "Ready To Cook", "Canned Food"]}], "code": "025385", "representation": "grocery/packaged-food/ready-to-cook", "path": ["Grocery", "Packaged Food", "Ready To Cook"]}, {"name": "Cooking Sauces & Vinegar", "child": [{"name": "Cooking Sauce", "child": [], "code": "dc640a", "representation": "grocery/packaged-food/cooking-sauces-vinegar/cooking-sauce", "path": ["Grocery", "Packaged Food", "Cooking Sauces & Vinegar", "Cooking Sauce"]}, {"name": "Vinegar", "child": [], "code": "a72a20", "representation": "grocery/packaged-food/cooking-sauces-vinegar/vinegar", "path": ["Grocery", "Packaged Food", "Cooking Sauces & Vinegar", "Vinegar"]}], "code": "17a33e", "representation": "grocery/packaged-food/cooking-sauces-vinegar", "path": ["Grocery", "Packaged Food", "Cooking Sauces & Vinegar"]}, {"name": "Baking", "child": [{"name": "Baking Ingredients", "child": [], "code": "598709", "representation": "grocery/packaged-food/baking/baking-ingredients", "path": ["Grocery", "Packaged Food", "Baking", "Baking Ingredients"]}, {"name": "Ready Baking Mixes", "child": [], "code": "f53beb", "representation": "grocery/packaged-food/baking/ready-baking-mixes", "path": ["Grocery", "Packaged Food", "Baking", "Ready Baking Mixes"]}], "code": "f56df6", "representation": "grocery/packaged-food/baking", "path": ["Grocery", "Packaged Food", "Baking"]}], "code": "cd28fc", "representation": "grocery/packaged-food", "path": ["Grocery", "Packaged Food"]}, {"name": "Personal Care", "child": [{"name": "Soaps & Body Wash", "child": [{"name": "Soaps", "child": [], "code": "b94511", "representation": "grocery/personal-care/soaps-body-wash/soaps", "path": ["Grocery", "Personal Care", "Soaps & Body Wash", "Soaps"]}, {"name": "Body Wash", "child": [], "code": "5136b1", "representation": "grocery/personal-care/soaps-body-wash/body-wash", "path": ["Grocery", "Personal Care", "Soaps & Body Wash", "Body Wash"]}, {"name": "Face Wash", "child": [], "code": "4e7a50", "representation": "grocery/personal-care/soaps-body-wash/face-wash", "path": ["Grocery", "Personal Care", "Soaps & Body Wash", "Face Wash"]}, {"name": "Hand Wash", "child": [], "code": "14b52c", "representation": "grocery/personal-care/soaps-body-wash/hand-wash", "path": ["Grocery", "Personal Care", "Soaps & Body Wash", "Hand Wash"]}, {"name": "Hand Sanitizer", "child": [], "code": "043926", "representation": "grocery/personal-care/soaps-body-wash/hand-sanitizer", "path": ["Grocery", "Personal Care", "Soaps & Body Wash", "Hand Sanitizer"]}], "code": "8465ab", "representation": "grocery/personal-care/soaps-body-wash", "path": ["Grocery", "Personal Care", "Soaps & Body Wash"]}, {"name": "Hair Care", "child": [{"name": "Shampoo", "child": [], "code": "f53762", "representation": "grocery/personal-care/hair-care/shampoo", "path": ["Grocery", "Personal Care", "Hair Care", "Shampoo"]}, {"name": "Conditioner", "child": [], "code": "907161", "representation": "grocery/personal-care/hair-care/conditioner", "path": ["Grocery", "Personal Care", "Hair Care", "Conditioner"]}, {"name": "Hair Oil", "child": [], "code": "bd9c94", "representation": "grocery/personal-care/hair-care/hair-oil", "path": ["Grocery", "Personal Care", "Hair Care", "Hair Oil"]}, {"name": "Hair Color", "child": [], "code": "aa0010", "representation": "grocery/personal-care/hair-care/hair-color", "path": ["Grocery", "Personal Care", "Hair Care", "Hair Color"]}, {"name": "Hair Serum", "child": [], "code": "e2541b", "representation": "grocery/personal-care/hair-care/hair-serum", "path": ["Grocery", "Personal Care", "Hair Care", "Hair Serum"]}, {"name": "Styling Products", "child": [], "code": "e48290", "representation": "grocery/personal-care/hair-care/styling-products", "path": ["Grocery", "Personal Care", "Hair Care", "Styling Products"]}], "code": "c25d48", "representation": "grocery/personal-care/hair-care", "path": ["Grocery", "Personal Care", "Hair Care"]}, {"name": "Oral Care", "child": [{"name": "Toothpaste", "child": [], "code": "8e331c", "representation": "grocery/personal-care/oral-care/toothpaste", "path": ["Grocery", "Personal Care", "Oral Care", "Toothpaste"]}, {"name": "Toothbrush", "child": [], "code": "7064d1", "representation": "grocery/personal-care/oral-care/toothbrush", "path": ["Grocery", "Personal Care", "Oral Care", "Toothbrush"]}, {"name": "Mouthwash", "child": [], "code": "cbb4dd", "representation": "grocery/personal-care/oral-care/mouthwash", "path": ["Grocery", "Personal Care", "Oral Care", "Mouthwash"]}, {"name": "Tongue Cleaners", "child": [], "code": "361db5", "representation": "grocery/personal-care/oral-care/tongue-cleaners", "path": ["Grocery", "Personal Care", "Oral Care", "Tongue Cleaners"]}, {"name": "Floss", "child": [], "code": "560dd3", "representation": "grocery/personal-care/oral-care/floss", "path": ["Grocery", "Personal Care", "Oral Care", "Floss"]}], "code": "4c1563", "representation": "grocery/personal-care/oral-care", "path": ["Grocery", "Personal Care", "Oral Care"]}, {"name": "Deos, Perfumes & Talc", "child": [{"name": "Women'S Deo", "child": [], "code": "b29cc3", "representation": "grocery/personal-care/deos-perfumes-talc/womens-deo", "path": ["Grocery", "Personal Care", "Deos, Perfumes & Talc", "Women'S Deo"]}, {"name": "Men'S Deo", "child": [], "code": "6f6cb3", "representation": "grocery/personal-care/deos-perfumes-talc/mens-deo", "path": ["Grocery", "Personal Care", "Deos, Perfumes & Talc", "Men'S Deo"]}, {"name": "Perfumes", "child": [], "code": "637b29", "representation": "grocery/personal-care/deos-perfumes-talc/perfumes", "path": ["Grocery", "Personal Care", "Deos, Perfumes & Talc", "Perfumes"]}, {"name": "Talc", "child": [], "code": "e29e57", "representation": "grocery/personal-care/deos-perfumes-talc/talc", "path": ["Grocery", "Personal Care", "Deos, Perfumes & Talc", "Talc"]}], "code": "eb9a94", "representation": "grocery/personal-care/deos-perfumes-talc", "path": ["Grocery", "Personal Care", "Deos, Perfumes & Talc"]}, {"name": "Creams, Lotions, Skin Care", "child": [{"name": "Creams", "child": [], "code": "c4ee4d", "representation": "grocery/personal-care/creams-lotions-skin-care/creams", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Creams"]}, {"name": "Body Lotion", "child": [], "code": "c53ca4", "representation": "grocery/personal-care/creams-lotions-skin-care/body-lotion", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Body Lotion"]}, {"name": "Hair Removal", "child": [], "code": "da6c09", "representation": "grocery/personal-care/creams-lotions-skin-care/hair-removal", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Hair Removal"]}, {"name": "Sunscreen", "child": [], "code": "d1531d", "representation": "grocery/personal-care/creams-lotions-skin-care/sunscreen", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Sunscreen"]}, {"name": "Lip Care", "child": [], "code": "1665bf", "representation": "grocery/personal-care/creams-lotions-skin-care/lip-care", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Lip Care"]}, {"name": "Toner", "child": [], "code": "b7289e", "representation": "grocery/personal-care/creams-lotions-skin-care/toner", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Toner"]}, {"name": "Body Oil", "child": [], "code": "152d15", "representation": "grocery/personal-care/creams-lotions-skin-care/body-oil", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Body Oil"]}, {"name": "Face Packs & Scrubs", "child": [], "code": "dd1496", "representation": "grocery/personal-care/creams-lotions-skin-care/face-packs-scrubs", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Face Packs & Scrubs"]}, {"name": "Facial Tissues", "child": [], "code": "5aae3a", "representation": "grocery/personal-care/creams-lotions-skin-care/facial-tissues", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care", "Facial Tissues"]}], "code": "80f526", "representation": "grocery/personal-care/creams-lotions-skin-care", "path": ["Grocery", "Personal Care", "Creams, Lotions, Skin Care"]}, {"name": "Wellness & Common Pharma", "child": [{"name": "Sexual Wellness", "child": [], "code": "d2a413", "representation": "grocery/personal-care/wellness-common-pharma/sexual-wellness", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Sexual Wellness"]}, {"name": "Cotton & Bandages", "child": [], "code": "ec1856", "representation": "grocery/personal-care/wellness-common-pharma/cotton-bandages", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Cotton & Bandages"]}, {"name": "Chyawanprash", "child": [], "code": "492985", "representation": "grocery/personal-care/wellness-common-pharma/chyawanprash", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Chyawanprash"]}, {"name": "Ointments", "child": [], "code": "c590ff", "representation": "grocery/personal-care/wellness-common-pharma/ointments", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Ointments"]}, {"name": "Antiseptic", "child": [], "code": "bcf5f5", "representation": "grocery/personal-care/wellness-common-pharma/antiseptic", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Antiseptic"]}, {"name": "Pain Relievers", "child": [], "code": "3416d3", "representation": "grocery/personal-care/wellness-common-pharma/pain-relievers", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Pain Relievers"]}, {"name": "Digestives", "child": [], "code": "7fceab", "representation": "grocery/personal-care/wellness-common-pharma/digestives", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma", "Digestives"]}], "code": "06ad8e", "representation": "grocery/personal-care/wellness-common-pharma", "path": ["Grocery", "Personal Care", "Wellness & Common Pharma"]}], "code": "ca645c", "representation": "grocery/personal-care", "path": ["Grocery", "Personal Care"]}, {"name": "Household Care", "child": [{"name": "Detergents & Laundry", "child": [{"name": "Detergents", "child": [], "code": "babacc", "representation": "grocery/household-care/detergents-laundry/detergents", "path": ["Grocery", "Household Care", "Detergents & Laundry", "Detergents"]}, {"name": "Fabric Care", "child": [], "code": "e1eabc", "representation": "grocery/household-care/detergents-laundry/fabric-care", "path": ["Grocery", "Household Care", "Detergents & Laundry", "Fabric Care"]}, {"name": "Washing Bars", "child": [], "code": "40c403", "representation": "grocery/household-care/detergents-laundry/washing-bars", "path": ["Grocery", "Household Care", "Detergents & Laundry", "Washing Bars"]}], "code": "c15ab3", "representation": "grocery/household-care/detergents-laundry", "path": ["Grocery", "Household Care", "Detergents & Laundry"]}, {"name": "Utensil Cleaners", "child": [{"name": "Dishwash Liquid", "child": [], "code": "42360a", "representation": "grocery/household-care/utensil-cleaners/dishwash-liquid", "path": ["Grocery", "Household Care", "Utensil Cleaners", "Dishwash Liquid"]}, {"name": "Dishwash Bar", "child": [], "code": "7fb5da", "representation": "grocery/household-care/utensil-cleaners/dishwash-bar", "path": ["Grocery", "Household Care", "Utensil Cleaners", "Dishwash Bar"]}, {"name": "Scrub Pads", "child": [], "code": "792f5f", "representation": "grocery/household-care/utensil-cleaners/scrub-pads", "path": ["Grocery", "Household Care", "Utensil Cleaners", "Scrub Pads"]}], "code": "085094", "representation": "grocery/household-care/utensil-cleaners", "path": ["Grocery", "Household Care", "Utensil Cleaners"]}, {"name": "Floor & Other Cleaners", "child": [{"name": "Toilet Cleaners", "child": [], "code": "341042", "representation": "grocery/household-care/floor-other-cleaners/toilet-cleaners", "path": ["Grocery", "Household Care", "Floor & Other Cleaners", "Toilet Cleaners"]}, {"name": "Floor Cleaners", "child": [], "code": "8180a4", "representation": "grocery/household-care/floor-other-cleaners/floor-cleaners", "path": ["Grocery", "Household Care", "Floor & Other Cleaners", "Floor Cleaners"]}, {"name": "Kitchen Cleaners", "child": [], "code": "742bf7", "representation": "grocery/household-care/floor-other-cleaners/kitchen-cleaners", "path": ["Grocery", "Household Care", "Floor & Other Cleaners", "Kitchen Cleaners"]}, {"name": "Drain Cleaners", "child": [], "code": "d1aca5", "representation": "grocery/household-care/floor-other-cleaners/drain-cleaners", "path": ["Grocery", "Household Care", "Floor & Other Cleaners", "Drain Cleaners"]}, {"name": "Cleaning Essentials", "child": [], "code": "50910d", "representation": "grocery/household-care/floor-other-cleaners/cleaning-essentials", "path": ["Grocery", "Household Care", "Floor & Other Cleaners", "Cleaning Essentials"]}, {"name": "Glass Cleaners", "child": [], "code": "dc3d67", "representation": "grocery/household-care/floor-other-cleaners/glass-cleaners", "path": ["Grocery", "Household Care", "Floor & Other Cleaners", "Glass Cleaners"]}], "code": "58d279", "representation": "grocery/household-care/floor-other-cleaners", "path": ["Grocery", "Household Care", "Floor & Other Cleaners"]}, {"name": "Repellants & Fresheners", "child": [{"name": "Mosquito Repellants", "child": [], "code": "ede69a", "representation": "grocery/household-care/repellants-fresheners/mosquito-repellants", "path": ["Grocery", "Household Care", "Repellants & Fresheners", "Mosquito Repellants"]}, {"name": "Air Fresheners", "child": [], "code": "10015c", "representation": "grocery/household-care/repellants-fresheners/air-fresheners", "path": ["Grocery", "Household Care", "Repellants & Fresheners", "Air Fresheners"]}, {"name": "Insecticides", "child": [], "code": "38029e", "representation": "grocery/household-care/repellants-fresheners/insecticides", "path": ["Grocery", "Household Care", "Repellants & Fresheners", "Insecticides"]}], "code": "7671cd", "representation": "grocery/household-care/repellants-fresheners", "path": ["Grocery", "Household Care", "Repellants & Fresheners"]}, {"name": "Paper & Disposables", "child": [{"name": "Aluminium Foils", "child": [], "code": "b9d488", "representation": "grocery/household-care/paper-disposables/aluminium-foils", "path": ["Grocery", "Household Care", "Paper & Disposables", "Aluminium Foils"]}, {"name": "Paper Napkins", "child": [], "code": "860767", "representation": "grocery/household-care/paper-disposables/paper-napkins", "path": ["Grocery", "Household Care", "Paper & Disposables", "Paper Napkins"]}, {"name": "Disposable Plates & Utensils", "child": [], "code": "210cfb", "representation": "grocery/household-care/paper-disposables/disposable-plates-utensils", "path": ["Grocery", "Household Care", "Paper & Disposables", "Disposable Plates & Utensils"]}, {"name": "Kitchen Roll", "child": [], "code": "52c240", "representation": "grocery/household-care/paper-disposables/kitchen-roll", "path": ["Grocery", "Household Care", "Paper & Disposables", "Kitchen Roll"]}, {"name": "Toilet Paper", "child": [], "code": "030902", "representation": "grocery/household-care/paper-disposables/toilet-paper", "path": ["Grocery", "Household Care", "Paper & Disposables", "Toilet Paper"]}, {"name": "Garbage Bags", "child": [], "code": "d7bd0b", "representation": "grocery/household-care/paper-disposables/garbage-bags", "path": ["Grocery", "Household Care", "Paper & Disposables", "Garbage Bags"]}], "code": "78a747", "representation": "grocery/household-care/paper-disposables", "path": ["Grocery", "Household Care", "Paper & Disposables"]}, {"name": "Basic Electricals", "child": [{"name": "Batteries", "child": [], "code": "994a4d", "representation": "grocery/household-care/basic-electricals/batteries", "path": ["Grocery", "Household Care", "Basic Electricals", "Batteries"]}], "code": "d75746", "representation": "grocery/household-care/basic-electricals", "path": ["Grocery", "Household Care", "Basic Electricals"]}, {"name": "Pooja Needs", "child": [{"name": "Agarbatti & Dhoop", "child": [], "code": "e14a32", "representation": "grocery/household-care/pooja-needs/agarbatti-dhoop", "path": ["Grocery", "Household Care", "Pooja Needs", "Agarbatti & Dhoop"]}, {"name": "Haven Items", "child": [], "code": "22de85", "representation": "grocery/household-care/pooja-needs/haven-items", "path": ["Grocery", "Household Care", "Pooja Needs", "Haven Items"]}, {"name": "Cotton Batti", "child": [], "code": "af5fe1", "representation": "grocery/household-care/pooja-needs/cotton-batti", "path": ["Grocery", "Household Care", "Pooja Needs", "Cotton Batti"]}, {"name": "Daily Puja", "child": [], "code": "ab4525", "representation": "grocery/household-care/pooja-needs/daily-puja", "path": ["Grocery", "Household Care", "Pooja Needs", "Daily Puja"]}], "code": "a8432a", "representation": "grocery/household-care/pooja-needs", "path": ["Grocery", "Household Care", "Pooja Needs"]}, {"name": "Pet Food", "child": [{"name": "Dog Food", "child": [], "code": "d3fab9", "representation": "grocery/household-care/pet-food/dog-food", "path": ["Grocery", "Household Care", "Pet Food", "Dog Food"]}, {"name": "Cat Food", "child": [], "code": "3a1433", "representation": "grocery/household-care/pet-food/cat-food", "path": ["Grocery", "Household Care", "Pet Food", "Cat Food"]}], "code": "a874fa", "representation": "grocery/household-care/pet-food", "path": ["Grocery", "Household Care", "Pet Food"]}, {"name": "Shoe Polish & Shiners", "child": [], "code": "f847e2", "representation": "grocery/household-care/shoe-polish-shiners", "path": ["Grocery", "Household Care", "Shoe Polish & Shiners"]}], "code": "c8a70f", "representation": "grocery/household-care", "path": ["Grocery", "Household Care"]}, {"name": "Dairy", "child": [{"name": "Milk", "child": [], "code": "199a62", "representation": "grocery/dairy/milk", "path": ["Grocery", "Dairy", "Milk"]}, {"name": "Cheese", "child": [], "code": "436dd0", "representation": "grocery/dairy/cheese", "path": ["Grocery", "Dairy", "Cheese"]}, {"name": "Curd & Yogurts", "child": [], "code": "fa1743", "representation": "grocery/dairy/curd-yogurts", "path": ["Grocery", "Dairy", "Curd & Yogurts"]}, {"name": "Butter & Spreads", "child": [], "code": "564672", "representation": "grocery/dairy/butter-spreads", "path": ["Grocery", "Dairy", "Butter & Spreads"]}, {"name": "Soya Milk", "child": [], "code": "d286c9", "representation": "grocery/dairy/soya-milk", "path": ["Grocery", "Dairy", "Soya Milk"]}, {"name": "Buttermilk & Lassi", "child": [], "code": "7d2367", "representation": "grocery/dairy/buttermilk-lassi", "path": ["Grocery", "Dairy", "Buttermilk & Lassi"]}, {"name": "Milk Powder", "child": [], "code": "ece34d", "representation": "grocery/dairy/milk-powder", "path": ["Grocery", "Dairy", "Milk Powder"]}, {"name": "Milk Cream", "child": [], "code": "97d841", "representation": "grocery/dairy/milk-cream", "path": ["Grocery", "Dairy", "Milk Cream"]}, {"name": "Paneer & Tofu", "child": [], "code": "d60052", "representation": "grocery/dairy/paneer-tofu", "path": ["Grocery", "Dairy", "Paneer & Tofu"]}], "code": "d31d67", "representation": "grocery/dairy", "path": ["Grocery", "Dairy"]}, {"name": "Eggs", "child": [], "code": "a06b0c", "representation": "grocery/eggs", "path": ["Grocery", "Eggs"]}], "code": "130fd2", "representation": "grocery", "path": ["Grocery"]}] \ No newline at end of file diff --git a/package.json b/package.json index 8dff2b0..0c95f47 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "gen-schema-types": "NODE_PATH=src ts-node ./lib/generateGQLTypes.ts", "lint": "eslint '*/**/*.{js,ts,json}' --fix", "makemigrations": "yarn db:development migration:generate", + "add-categories": "NODE_PATH=src ts-node ./lib/addCategories.ts", "migrate": "yarn db migration:run", "start": "per-env", "start:development": "nodemon --exec ts-node src/index.ts", diff --git a/src/apps/categories/addCategory/addCategory.resolvers.ts b/src/apps/categories/addCategory/addCategory.resolvers.ts index 05b815b..b39c092 100644 --- a/src/apps/categories/addCategory/addCategory.resolvers.ts +++ b/src/apps/categories/addCategory/addCategory.resolvers.ts @@ -1,15 +1,35 @@ -import { ResolverMap } from 'types'; +import { ResolverMap ,IExceptions} from 'types'; import {Category} from '../categories.entity'; +import { User } from '../../user.entity'; +import { Exceptions } from '../../../helpers/exceptions'; +import { categoryArgsValidator } from './validators'; +import { DUPLICATE_REPRESENTATION } from '../exceptions'; + + const Resolvers: ResolverMap = { + CategoryOrException:{ + __resolveType: (obj): string => (obj.exceptions ? 'Exceptions' : 'Category'), + }, Mutation: { - addCategory: async(_, { name ,code,representation,parent}:GQL.AddCategoryMutationArguments,): Promise => { + addCategory: async(_,args,{ session }): Promise =>{ + // const user = await User.authenticationRequired(session); + const { data, exceptions, push, validate } = new Exceptions(args); + + if (!await validate(categoryArgsValidator, args)) return exceptions; + + const { name, code,representation } = data; + const newCategory=new Category(); newCategory.name=name; newCategory.code=code; newCategory.representation=representation; - newCategory.parent=parent; - await newCategory.save(); + + try { + await newCategory.save(); + } catch (error) { + return push(DUPLICATE_REPRESENTATION({ data: { representation: newCategory.representation } })) + } console.log(newCategory); return newCategory; } diff --git a/src/apps/categories/addCategory/addCategory.schema.gql b/src/apps/categories/addCategory/addCategory.schema.gql index 111f990..b4e6ae8 100644 --- a/src/apps/categories/addCategory/addCategory.schema.gql +++ b/src/apps/categories/addCategory/addCategory.schema.gql @@ -4,6 +4,5 @@ type Mutation { name: String!, code: String!, representation:String, - parent:String ):Category } diff --git a/src/apps/categories/addCategory/validators.ts b/src/apps/categories/addCategory/validators.ts new file mode 100644 index 0000000..b464d44 --- /dev/null +++ b/src/apps/categories/addCategory/validators.ts @@ -0,0 +1,9 @@ +import * as yup from 'yup'; +import * as _ from 'lodash'; + + +export const categoryArgsValidator = yup.object().shape({ + name: yup.string().required('Name is required for the category.'), + code: yup.string().required('Category needs a unique code.'), + representation: yup.string().transform(value => _.kebabCase(value)) +}); diff --git a/src/apps/categories/categories.entity.ts b/src/apps/categories/categories.entity.ts index dcd4e64..0971ceb 100644 --- a/src/apps/categories/categories.entity.ts +++ b/src/apps/categories/categories.entity.ts @@ -1,19 +1,27 @@ -import { Entity, Column } from 'typeorm'; +import { Entity, Column ,ManyToOne } from 'typeorm'; import { BaseEntity } from 'helpers/db'; - +import * as _ from 'lodash'; @Entity('category') export class Category extends BaseEntity { @Column() name:string; - @Column({nullable:false,unique:true}) + @Column() code:string; - @Column() + @Column({nullable:false,unique:true}) representation:string; - @Column() - parent:string; + @ManyToOne(type => Category, parent => parent.parent) + parent: Category; + + get _representation(){ + return this.representation; + } + + set _representation(value){ + this.representation=_.kebabCase(value); + } } \ No newline at end of file diff --git a/src/apps/categories/categories.resolvers.ts b/src/apps/categories/categories.resolvers.ts index d470cc7..6dfb032 100644 --- a/src/apps/categories/categories.resolvers.ts +++ b/src/apps/categories/categories.resolvers.ts @@ -1,18 +1,9 @@ import { ResolverMap } from 'types'; import { Category } from './categories.entity'; - const Resolvers: ResolverMap = { Query: { categories: async (_, { representation }:GQL.fetchCategories,): Promise => { const baseCategories= await Category.find(); - if(representation){ - const filteredCategories=[]; - baseCategories.map((cat)=>{ - if(cat.parent===representation) - filteredCategories.push(cat); - }); - return filteredCategories; - } return baseCategories; }, diff --git a/src/apps/categories/categories.schema.gql b/src/apps/categories/categories.schema.gql index ff606ff..7711a38 100644 --- a/src/apps/categories/categories.schema.gql +++ b/src/apps/categories/categories.schema.gql @@ -1,10 +1,13 @@ +# import Exceptions from 'apps/schema.gql' + type Category{ name:String, code:String, representation:String, - parent:String } +union CategoryOrException = Category | Exception + type Query{ categories(representation:String):[Category] } \ No newline at end of file diff --git a/src/apps/categories/categories.test.ts b/src/apps/categories/categories.test.ts index bd9927b..cf7d54b 100644 --- a/src/apps/categories/categories.test.ts +++ b/src/apps/categories/categories.test.ts @@ -3,7 +3,6 @@ import { Connection } from 'typeorm'; import { TestClient } from '../../server/client'; import { Category } from './categories.entity'; - let conn: Connection; beforeAll(async () => { conn = await Server.connectToDB(); @@ -13,24 +12,22 @@ afterAll(async () => { await conn.close(); }); -const $categories = () => ` +const $categories = (representation:string) => ` query{ - categories{ + categories(representation:"${representation}"){ name code representation - parent } } `; -const $addCategory = (name: string, code: string, representation: string, parent: string) => ` +const $addCategory = (name: string, code: string, representation: string,) => ` mutation { - addCategory(name: "${name}",code:"${code}",representation:"${representation}",parent:"${parent}"){ + addCategory(name: "${name}",code:"${code}",representation:"${representation}"){ name code representation - parent } } `; @@ -40,20 +37,30 @@ describe('categories',()=>{ test('fetch base categories', async () => { const client = new TestClient(); const count =await Category.count(); - const {categories} = await client.query($categories()); + const {categories} = await client.query($categories(null)); + expect(count).toEqual(categories.length); + }); + test('fetch filtered categories', async () => { + const client = new TestClient(); + const count =await Category.count(); + const {categories} = await client.query($categories('base')); expect(count).toEqual(categories.length); + categories.map((cat)=>{ + expect(cat.parent).toEqual('base'); + }); }); - // test('adding category',async()=>{ - // const client = new TestClient(); - // const newCategory = new Category(); - // newCategory.name = 'testCategory'; - // newCategory.code='po789'; - // newCategory.parent='base'; - // newCategory.representation='/testCategory' - // await newCategory.save() - // const { addCategory } = await client.query($addCategory(newCategory.name,newCategory.code,newCategory.representation,newCategory.parent)); - // const {name}=addCategory; - // expect(name).toEqual(newCategory.name); - // }) + test('adding category',async()=>{ + const client = new TestClient(); + const newCategory = new Category() + newCategory.name = 'testCategory' + newCategory.code='po789' + newCategory.representation='/testCategory' + await newCategory.save() + console.log(newCategory); + const { addCategory }= await client.query($addCategory(newCategory.name,newCategory.code,newCategory.representation)); + console.log(addCategory); + const {name}=addCategory; + expect(name).toEqual(newCategory.name); + }) }) \ No newline at end of file diff --git a/src/apps/categories/exceptions.ts b/src/apps/categories/exceptions.ts new file mode 100644 index 0000000..b93bf6d --- /dev/null +++ b/src/apps/categories/exceptions.ts @@ -0,0 +1,11 @@ +import { Exceptions } from 'helpers/exceptions'; + +export const DUPLICATE_REPRESENTATION = Exceptions.generator({ + code: 'DUPLICATE_REPRESENTATION', + message: 'Category of same representation already exists', +}); + +export const INVALID_ARGUMENTS_RECEIVED = Exceptions.generator({ + code: 'INVALID_ARGUMENTS_TYPE', + message: 'Expected a valid Representation and a name and code for category', +}); \ No newline at end of file diff --git a/src/migrations/1598027525954-AddCategories.ts b/src/migrations/1598027525954-AddCategories.ts new file mode 100644 index 0000000..6269912 --- /dev/null +++ b/src/migrations/1598027525954-AddCategories.ts @@ -0,0 +1,22 @@ +import {MigrationInterface, QueryRunner} from 'typeorm'; + +export class AddCategories1598027525954 implements MigrationInterface { + name = 'AddCategories1598027525954' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query('ALTER TABLE "category" DROP COLUMN "parent"'); + await queryRunner.query('ALTER TABLE "category" ADD "parentId" uuid'); + await queryRunner.query('ALTER TABLE "category" DROP CONSTRAINT "UQ_652a15c02538138f021f1320de8"'); + await queryRunner.query('ALTER TABLE "category" ADD CONSTRAINT "UQ_03fcdc62f478303d3621b06c917" UNIQUE ("representation")'); + await queryRunner.query('ALTER TABLE "category" ADD CONSTRAINT "FK_d5456fd7e4c4866fec8ada1fa10" FOREIGN KEY ("parentId") REFERENCES "category"("id") ON DELETE NO ACTION ON UPDATE NO ACTION'); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query('ALTER TABLE "category" DROP CONSTRAINT "FK_d5456fd7e4c4866fec8ada1fa10"'); + await queryRunner.query('ALTER TABLE "category" DROP CONSTRAINT "UQ_03fcdc62f478303d3621b06c917"'); + await queryRunner.query('ALTER TABLE "category" ADD CONSTRAINT "UQ_652a15c02538138f021f1320de8" UNIQUE ("code")'); + await queryRunner.query('ALTER TABLE "category" DROP COLUMN "parentId"'); + await queryRunner.query('ALTER TABLE "category" ADD "parent" character varying NOT NULL'); + } + +} diff --git a/tsconfig.json b/tsconfig.json index 85aac8d..1fdcc7d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,4 @@ + { "compilerOptions": { "baseUrl": "./src", @@ -7,6 +8,7 @@ "esnext", "dom" ], + "resolveJsonModule": true, "target": "es5", "module": "commonjs", "moduleResolution": "node", From 97430b721ced1d6b209defc9ec64192eb83011a3 Mon Sep 17 00:00:00 2001 From: 4msha Date: Sat, 22 Aug 2020 00:06:34 +0530 Subject: [PATCH 4/4] small changes --- lib/addCategories.ts | 4 ++-- .../addCategory/addCategory.schema.gql | 1 + src/apps/categories/categories.schema.gql | 1 + src/migrations/1598027525954-AddCategories.ts | 22 ------------------- 4 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 src/migrations/1598027525954-AddCategories.ts diff --git a/lib/addCategories.ts b/lib/addCategories.ts index a33ab16..0ba585d 100644 --- a/lib/addCategories.ts +++ b/lib/addCategories.ts @@ -10,7 +10,7 @@ let conn: Connection; const main = async () => { conn = await Server.connectToDB(); await recursive(categories,null); - await conn.close().then(()=>console.log('dvb closed')); + await conn.close(); } const insertIntoDb = async(name:string,code:string,representation:string,parent:any )=>{ @@ -22,7 +22,7 @@ const insertIntoDb = async(name:string,code:string,representation:string,parent: try { await newCategory.save(); } catch (error) { - console.log('fuck'); + console.log(error); } } diff --git a/src/apps/categories/addCategory/addCategory.schema.gql b/src/apps/categories/addCategory/addCategory.schema.gql index b4e6ae8..8a5c370 100644 --- a/src/apps/categories/addCategory/addCategory.schema.gql +++ b/src/apps/categories/addCategory/addCategory.schema.gql @@ -4,5 +4,6 @@ type Mutation { name: String!, code: String!, representation:String, + parent:Category ):Category } diff --git a/src/apps/categories/categories.schema.gql b/src/apps/categories/categories.schema.gql index 7711a38..004669b 100644 --- a/src/apps/categories/categories.schema.gql +++ b/src/apps/categories/categories.schema.gql @@ -4,6 +4,7 @@ type Category{ name:String, code:String, representation:String, + parent:Category } union CategoryOrException = Category | Exception diff --git a/src/migrations/1598027525954-AddCategories.ts b/src/migrations/1598027525954-AddCategories.ts deleted file mode 100644 index 6269912..0000000 --- a/src/migrations/1598027525954-AddCategories.ts +++ /dev/null @@ -1,22 +0,0 @@ -import {MigrationInterface, QueryRunner} from 'typeorm'; - -export class AddCategories1598027525954 implements MigrationInterface { - name = 'AddCategories1598027525954' - - public async up(queryRunner: QueryRunner): Promise { - await queryRunner.query('ALTER TABLE "category" DROP COLUMN "parent"'); - await queryRunner.query('ALTER TABLE "category" ADD "parentId" uuid'); - await queryRunner.query('ALTER TABLE "category" DROP CONSTRAINT "UQ_652a15c02538138f021f1320de8"'); - await queryRunner.query('ALTER TABLE "category" ADD CONSTRAINT "UQ_03fcdc62f478303d3621b06c917" UNIQUE ("representation")'); - await queryRunner.query('ALTER TABLE "category" ADD CONSTRAINT "FK_d5456fd7e4c4866fec8ada1fa10" FOREIGN KEY ("parentId") REFERENCES "category"("id") ON DELETE NO ACTION ON UPDATE NO ACTION'); - } - - public async down(queryRunner: QueryRunner): Promise { - await queryRunner.query('ALTER TABLE "category" DROP CONSTRAINT "FK_d5456fd7e4c4866fec8ada1fa10"'); - await queryRunner.query('ALTER TABLE "category" DROP CONSTRAINT "UQ_03fcdc62f478303d3621b06c917"'); - await queryRunner.query('ALTER TABLE "category" ADD CONSTRAINT "UQ_652a15c02538138f021f1320de8" UNIQUE ("code")'); - await queryRunner.query('ALTER TABLE "category" DROP COLUMN "parentId"'); - await queryRunner.query('ALTER TABLE "category" ADD "parent" character varying NOT NULL'); - } - -}