This work is based on https://github.com/bolerio/mjson