Proper JSON construction