Added some json utilities