Output to json files, played with filtering