more concise way to send json