Last active
November 8, 2025 09:41
-
-
Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.
How to import sample data for classified listing like categories & locations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "locations": [ | |
| { | |
| "name": "New York", | |
| "slug": "", | |
| "description": "", | |
| "meta": [ | |
| {"image_id" : 45}, | |
| {"_icon" : ""} | |
| ], | |
| "order": 0, | |
| "child": [ | |
| {"name": "New York", "order": 1 }, | |
| {"name" : "Port Chester", "order": 2}, | |
| {"name" : "Mineola", "order": 3}, | |
| {"name" : "Mount Vernon", "order": 4}, | |
| {"name" : "Hempstead", "order": 5}, | |
| {"name" : "Lynbrook", "order": 6}, | |
| {"name" : "Yonkers", "order": 7}, | |
| {"name" : "Franklin Square", "order": 8}, | |
| {"name" : "Newburgh", "order": 9}, | |
| {"name" : "Buffalo", "order": 10}, | |
| {"name" : "Long Beach", "order": 11}, | |
| {"name" : "Ithaca", "order": 12}, | |
| {"name" : "New Rochelle", "order": 13}, | |
| {"name" : "Freeport", "order": 14}, | |
| {"name" : "Rochester", "order": 15}, | |
| {"name" : "Albany", "order": 16}, | |
| {"name" : "Valley Stream", "order": 17}, | |
| {"name" : "Poughkeepsie", "order": 18}, | |
| {"name" : "Baldwin", "order": 19}, | |
| {"name" : "West Hempstead", "order": 20}, | |
| {"name" : "Schenectady", "order": 21}, | |
| {"name" : "White Plains", "order": 22}, | |
| {"name" : "Uniondale", "order": 23}, | |
| {"name" : "North Valley Stream", "order": 24}, | |
| {"name" : "Ossining", "order": 25} | |
| ] | |
| } | |
| ], | |
| "categories": [ | |
| { | |
| "name": "Electronics", | |
| "slug": "", | |
| "description": "", | |
| "meta": "", | |
| "order": 0, | |
| "child":[ | |
| { | |
| "name": "Mobile Phone", | |
| "order": 1 | |
| }, | |
| { | |
| "name": "Mobile Phone Accessories", | |
| "order": 2 | |
| }, | |
| { | |
| "name": "Computers & Tablets", | |
| "order": 3 | |
| }, | |
| { | |
| "name": "Computer Accessories", | |
| "order": 4 | |
| }, | |
| { | |
| "name": "TVs", | |
| "order": 5 | |
| }, | |
| { | |
| "name": "TV & Video Accessories", | |
| "order": 6 | |
| }, | |
| { | |
| "name": "Cameras & Camcorders", | |
| "order": 7 | |
| }, | |
| { | |
| "name": "Audio & MP3", | |
| "order": 8 | |
| }, | |
| { | |
| "name": "Video Games & Consoles", | |
| "order": 9 | |
| }, | |
| { | |
| "name": "Freeze", | |
| "order": 10 | |
| }, | |
| { | |
| "name": "Air Conditioner (AC)", | |
| "order": 11 | |
| }, | |
| { | |
| "name": "Other Electronics", | |
| "order": 11 | |
| } | |
| ] | |
| } | |
| ], | |
| "listings":[ | |
| ] | |
| } |
Here is every state and city in the USA.
Copy the below, save a .json file (eg: all_locations.json). You may have to run the uploader several times.
https://gist.github.com/davedele/41bb65ba86e3763f0db8aa2fb64f0385
State & City in the USA. @radiustheme
https://github.com/xcyborgoders/USA-States-and-Cities.Json
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you scroll up you will see plenty of my sample data i submitted