Added support to parse json bodies and store document