sending json now between back and front