changed defaultRequestParser to try to parse the content of put and post requests into json