Hi,<br><br>As some of you may know I am working on a JSON-RPC &lt;-&gt; AMP bridge to consume AMP services from browsers. WIP: <a href="http://lvh.github.com/amphibian/">http://lvh.github.com/amphibian/</a><br><br>I&#39;ve hit a failing integration test. I know what the issue is -- I don&#39;t know how to resolve it.<br>

<br>I attempted to write the proxy without any knowledge of the remote commands. It assumes that the JSON provided satisfies the remote signature. If it doesn&#39;t -- that&#39;s okay, we&#39;ll get a failure back from the AMP server. So, I use callRemoteString and manually serialize by typechecking. Although that works for sending, the result I get back from callRemoteString is also in wire format. Because I don&#39;t know the signature, I have no idea if the sender meant 4, &quot;4&quot;, u&quot;4&quot;...<br>

<br>On IRC:<br>dreid pointed out that I really shouldn&#39;t need a language-specific implementation of a class for this to work<br>teratorn pointed out that there is a JSON schema ticket for AMP. Perhaps there should also be a &quot;DiscoverSchema&quot; command?<br clear="all">

<br>Alternatively I could just cop out and require commands to be importable. Would make the code simpler but the entire design would become significantly more coupled.<br><br>-- <br>cheers<div>lvh</div><br>