Added basic API access using JSON