| 665 | } |
| 666 | |
| 667 | TString TJsonValue::GetStringRobust() const { |
| 668 | switch (Type) { |
| 669 | case JSON_ARRAY: |
| 670 | case JSON_MAP: |
| 671 | case JSON_BOOLEAN: |
| 672 | case JSON_DOUBLE: |
| 673 | case JSON_INTEGER: |
| 674 | case JSON_UINTEGER: |
| 675 | case JSON_NULL: |
| 676 | case JSON_UNDEFINED: |
| 677 | default: { |
| 678 | NJsonOrderedWriter::TBuf sout; |
| 679 | sout.WriteJsonValue(this); |
| 680 | return sout.Str(); |
| 681 | } |
| 682 | case JSON_STRING: |
| 683 | return Value.String; |
| 684 | } |
| 685 | } |
| 686 | |
| 687 | NJson::TJsonValue TJsonValue::GetNonOrderedJsonValue() const { |
| 688 | NJson::TJsonValue res; |
no test coverage detected