json sending and parsing now sort of works. Must send as a hash, and can be investigated as object type in javascript