building import json in js, building full feature data in python