This work is based on https://github.com/zalando-incubator/flatjson