Commit changes to get Json data through XHTTPRequest