Java api json typo

Fixed JSON typo in Java API example.