dpi: Add load_json(), Fix ''->"" for json
test-dpi: Fix test DpiStatesController