Sorry didn't answer this one; the previous email was for the Find().

An instance where this is used is in such things as RPC where the input
arguments may not be known beforehand. An rpc method is defined as func
Method(inargs interface{}, outargs *interface{}) error {}

I need it to be able to leverage simplejson to handle dynamic inargs.

Leon


On 3 April 2013 09:25, Matt Reiferson <notifications@github.com> wrote:

> In simplejson.go:
>
> > @@ -26,6 +27,27 @@ func NewJson(body []byte) (*Json, error) {
> >  	return j, nil
> >  }
> >
> > +// FromInterface enables use of simple Json accessors to parse the data.
> > +func FromInterface(i interface{}) (j *Json) {
>
> not sure I see a strong need for this, can you demonstrate a context where
> this is useful?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/bitly/go-simplejson/pull/12/files#r3628561>
> .
>