An implementation of jsonpath in Lua (or a learning experience in state machines)