json in java pubsub