working json parser for registering device now