I need to parse images array to json with GSON
<p>The method where I get the images</p>

<pre><code>private List&lt;HashMap&lt;String, RequestBody&gt;&gt; getUserDocumentsPhoto(File[] images){

    HashMap&lt;String, RequestBody&gt; userDocumentsPhoto = new HashMap&lt;&gt;();
    List&lt;HashMap&lt;String, RequestBody&gt;&gt; photos = new ArrayList&lt;&gt;();

    for (File image : images) {
        RequestBody fileBody = RequestBody.create(MediaType.parse("multipart/form-data"), image);
        userDocumentsPhoto.put("filename=\"" + image.getName(), fileBody);
    }
    photos.add(userDocumentsPhoto);
    return photos;
</code></pre>

<p>When parse to json I need to get</p>

<pre><code>"document_photos": [
"/system/attachments/files/000/000/110/original/photo20160726_120701-1392731703.jpg?1469524104",
"/system/attachments/files/000/000/111/original/photo20160726_120814-2041790628.jpg?1469524105"]
</code></pre>

<p>But when it parsed, "document_photos []" has null</p>