converting node_json to x-self-json