parsing json request now works