Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/loopbackio/loopback-next
/ toJSON
Function
toJSON
packages/testlab/src/to-json.ts:52–54 ·
view source on GitHub ↗
(value: T)
Source
from the content-addressed store, hash-verified
50
): object | null | undefined;
51
52
export
function
toJSON<T>(value: T) {
53
return
JSON.parse(JSON.stringify({value})).value;
54
}
Callers
15
relation.factory.integration.ts
File · 0.90
legacy-juggler-bridge.unit.ts
File · 0.90
include-related-models.unit.ts
File · 0.90
model-api.booter.acceptance.ts
File · 0.90
to-json.test.ts
File · 0.90
default-model-crud-rest.acceptance.ts
File · 0.90
nestedModelsPropertiesSuite
Function · 0.90
createRetrieveSuite
Function · 0.90
createSuiteForReplaceById
Function · 0.90
freeformPropertiesSuite
Function · 0.90
transactionSuite
Function · 0.90
hasOneRelationPolymorphicAcceptance
Function · 0.90
Calls
1
parse
Method · 0.65
Tested by
no test coverage detected