> Is there a problem with using the eval function? > > I'm curious why you would need an alternative that would add overhead.
Security is the main problem. If you trust the source completely then eval is fine. Parser's like Doug's json2 also let you pass in a replacement function so you can massage the data as it's parsed if you need to.