First implementation of json packet