added basic json string parsing and back end variable retrieval