Implement JSON parser

Implement JSON parser to allow parsing of JSON RPC commands (will be implemented
later).

Signed-off-by: Michal Novotny <mignov@gmail.com>