fix json elements in requests