Improve error code.
Parse POST json payload into array.