title: How to send multipart/form-data and nested json in the same request in postman?
body: <p>I have a REST api that takes data of nested json including multipart file</p>
  <p>While testing the REST api through postman I am having problems.</p>
  <p>I don't exactly know how to send the diverse types of data that I need - multipart/form-data file and nested json.</p>
  <p>I have used REST in each case separately in other projects but I am unable to combine them in one request.</p>
  <p>To use multipart/form-data I have to select form-data in the Body, then File from the dropdown in the key field, click on the select files button on the value field and select the file I want to upload.</p>
  <p><a href="https://i.stack.imgur.com/cz857.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cz857.png" alt="Adding file in form-data" /></a></p>
  <p>To use nested json I have to select raw in the dropdown, and select json at the right of it and simply add the nested json in the body.</p>
  <p><a href="https://i.stack.imgur.com/9XjGu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9XjGu.png" alt="adding json data" /></a></p>
  <p>But how do I combine these two approaches?</p>
  <p>I need multipart/form-data as well as nested json in the same request. How do I send these from postman? I am trying various approaches as you can see in the screenshots but I am not getting anywhere.</p>
  <p>Thanks in advance</p>
  <p>P.S. If it matters, I am using java (spring boot) for the backend.</p>