 <p>Thank you so much everyone, the answer was easier than i though:</p> <p>The file test.json:</p> <pre><code>{ "test": "Hello World!" } </code></pre> <p>And the code:</p> <pre><code>var a = OwNet.get( 'core/config/test.json', function( Res ) { // Res is the response from an AJAX request (where i requested the test.json file) if( Res !== "" &amp;&amp; Res !== undefined &amp;&amp; Res !== null ) { // Replacing the line breaks, carriage returns and spaces Res = Res.replace( /\r\n|\r|\n|\s*/gm, "" ); // Erased the JSON.stringify and replaced tmp by Res return JSON.parse( Res ); } else return null; }); </code></pre>