Updated for 0.8 API methods

@jacobawenger please review if you have a chance
$$toJSON