sending json instead of raw string