Start of local json handling