//*******************************************************
//
//               Delphi DataSnap Framework
//
// Copyright(c) 1995-2011 Embarcadero Technologies, Inc.
//
//*******************************************************

#import "TJSONString.h"


@implementation TJSONString
-(id) init {
	self = [super init];
	if (self) {
		value =nil;
	}
	return self;
}
-(id) initWithString:(NSString *) aValue{
	self = [self init];
	if (self) {
		value = aValue;
	}
	return self;
}
-(id) getInternalObject{
	return value;
}

-(NSString *) toString{
  	if (value)
		return [NSString stringWithFormat:@"\"%@\"",value];
	return [self nullString];

}

-(JSONValueType) getJSONValueType{
	return JSONString;
}

-(NSString *) getValue {
	return value;
}

@end
@implementation TJSONString(jsonstringCreation)
+(id) JSONStringWithString:(NSString *) aValue{
	return [[TJSONString alloc]initWithString:aValue];
}

@end