Add ability to accept json string