added json utilities