[server][HAPI JSON] Unify common code to inspect a node

Sorry... It was my mistake.
I've fixed it.