added HPD Server interface.

fixed json parser for scalar dataset.