Re: JSON Inline::C

[email protected] (David Mertens)
Newsgroups perl.inline
Message-ID <CA+4ieYWqXcHYvRTkq_=wjQinSMfUgQ6JF4piAddfyhLduyss7Q@mail.gmail.com>
On Sun, Apr 15, 2012 at 7:54 PM, stephen munyiri <[email protected]>wrote:

> Hi,
>
> Can I call a C function that takes in JSON from perl and have it return
> data in JSON format. The C function should be able to handle JSON.
>

What exactly are you asking? Does the C function take a JSON string or a
JSON Perl object as input? Which Perl JSON library do you intend to
interface to your C library? Should the output be a JSON string? Is the
statement "The C function should be able to handle JSON" a requirement of a
C function yet to be written, or a reassurance of a C function you intend
to wrap? Can you give some example code to demo what you want to have
happen?

David

-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.