<p>The producer_args passed by sqlt contains a number of keys which are<br>
not specific to JSON. These were passed unfiltered to to_json().<br>
JSON (at least as of v2.90) will throw an error if it is passed an<br>
unknown option (it uses the option key as a method name, which leads<br>
to confusing error messages).</p>
<p>It's not straightforward to automatically determine the args supported<br>
by the JSON module, so this simply whitelist the 'pretty', 'indent',<br>
and 'canonical' options.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/dbsrgits/sql-translator/pull/64'>https://github.com/dbsrgits/sql-translator/pull/64</a></p>
<h4>Commit Summary</h4>
<ul>
<li>don't pass non-JSON specific producer_args to to_json</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/dbsrgits/sql-translator/pull/64/files#diff-0">lib/SQL/Translator/Producer/JSON.pm</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/dbsrgits/sql-translator/pull/64/files#diff-1">t/23json.t</a>
(4)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/dbsrgits/sql-translator/pull/64.patch'>https://github.com/dbsrgits/sql-translator/pull/64.patch</a></li>
<li><a href='https://github.com/dbsrgits/sql-translator/pull/64.diff'>https://github.com/dbsrgits/sql-translator/pull/64.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/dbsrgits/sql-translator/pull/64">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AASeApBL2ABP8AqlF_zbyOImqm1BE6h5ks5okTE1gaJpZM4FlrMD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/dbsrgits/sql-translator/pull/64"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>