Protected json converstion