A script to serialize a list of words into JSON tries.