Fixes bug in array detection, updates body parsing to accepts json and text/*