in reply to Are there any issues with JSON

Design a RESTful API on the server (Perl), using JSON as the data serialization format. This way, your browser is just one client - one that happens to require JavaScript to facilitate the back and forth communications and data serializing/deserializing.