Create json sample code