added json internal api