How to create this type of block of json utils

blocks(2)
how to write this code in java