PLINK-376: port json security code
Merge pull request #248 from anilsaldhana/master

PLINK-376: port json security code