fixed null pointer bug in creating json primitive