boilerplate for jsobject to json node