# Inrupt.com does not accept application/ld+json

**URL:** <https://forum.solidproject.org/t/inrupt-com-does-not-accept-application-ld-json/4967>\
**Category:** General Discussion\
**Created:** [December 20, 2021, 9:20am UTC](https://forum.solidproject.org/t/inrupt-com-does-not-accept-application-ld-json/4967 "2021-12-20T09:20:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [December 20, 2021, 9:20am UTC](https://forum.solidproject.org/t/inrupt-com-does-not-accept-application-ld-json/4967/1 "2021-12-20T09:20:32Z")

</div>

[inrupt.com](http://inrupt.com) does not accept application/ld+json as mimetype, only application/json

shouldn’t Entreprise inrupt server accept application/ld+json ?

```auto
      try{
        const savedFile = await overwriteFile(
          n['ve:url'],
          new Blob([JSON.stringify(n, undefined, 2)], { type: "application/json" }),
          { contentType: "application/json", fetch: sc.fetch }
          // new Blob([JSON.stringify(n, undefined, 2)], { type: "application/ld+json" }),
          // { contentType: "application/ld+json", fetch: sc.fetch }
        );
        console.log(`File saved at ${getSourceUrl(savedFile)}`);
        //n.url = await getSourceUrl(savedFile)
        // store.dispatch('nodes/saveNode', n)
        return n
      }catch(e){
        console.log(e)
      }

```

the app [verse](https://scenaristeur.github.io/verse/)  
the code [verse/solid-data.js at e2e7f4c895d62222d33eee6d05e6033c2c96e36c · scenaristeur/verse · GitHub](https://github.com/scenaristeur/verse/blob/e2e7f4c895d62222d33eee6d05e6033c2c96e36c/src/plugins/solid-data.js#L55)

 ![Capture du 2021-12-20 10-06-37](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/e/e15393a7027115639349d021c13bfd0334db1da7.png)  
 ![Capture du 2021-12-20 10-05-55](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/3/391ec97d8b4c3ca6924a0c5d1f189d650ee0ea85.png)

> <https://github.com/inrupt/solid-client-js/issues/1389>
>
> inrupt.com does not accept application/json+ld as mimetype, only application/jso…n
> 
> shouldn't Entreprise inrupt server accept application/json+ld ? 
> 
> \`\`\`
> try{
> const savedFile = await overwriteFile(
> n\['ve:url'\],
> new Blob(\[JSON.stringify(n, undefined, 2)\], { type: "application/json" }),
> { contentType: "application/json", fetch: sc.fetch }
> // new Blob(\[JSON.stringify(n, undefined, 2)\], { type: "application/ld+json" }),
> // { contentType: "application/ld+json", fetch: sc.fetch }
> );
> console.log(\`File saved at ${getSourceUrl(savedFile)}\`);
> //n.url = await getSourceUrl(savedFile)
> // store.dispatch('nodes/saveNode', n)
> return n
> }catch(e){
> console.log(e)
> }
> \`\`\`
> the app https://scenaristeur.github.io/verse/
> the code https://github.com/scenaristeur/verse/blob/e2e7f4c895d62222d33eee6d05e6033c2c96e36c/src/plugins/solid-data.js#L55
> 
> 
> !\[Capture du 2021-12-20 10-06-37\](https://user-images.githubusercontent.com/4020744/146742564-94118616-c8c5-4f45-9fb2-bbe0bd79fe0e.png)
> !\[Capture du 2021-12-20 10-05-55\](https://user-images.githubusercontent.com/4020744/146742568-66a35131-614e-4e7c-88e2-f8022ec8ef63.png)

---

<div class="post-metadata">

**Author:** ![srosset81](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/srosset81/32/4482_2.png) [@srosset81](https://forum.solidproject.org/u/srosset81)\
**Post date:** [December 20, 2021, 1:32pm UTC](https://forum.solidproject.org/t/inrupt-com-does-not-accept-application-ld-json/4967/2 "2021-12-20T13:32:23Z")

</div>

The correct MIME type for JSON-LD is `application/ld+json`, not `application/json+ld`, maybe it will work this way ?

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [December 20, 2021, 2:06pm UTC](https://forum.solidproject.org/t/inrupt-com-does-not-accept-application-ld-json/4967/3 "2021-12-20T14:06:11Z")

</div>

sorry miss-copying, i have fixed my post thxs @srosset81  
this is what i have in my code

```auto
 // new Blob([JSON.stringify(n, undefined, 2)], { type: "application/ld+json" }),
          // { contentType: "application/ld+json", fetch: sc.fetch }

```
