Skip to content

JsonHelper usage in all NGSIv2 renders (second step: optimization and performance) #1298

@fgalan

Description

@fgalan

JsonHelper class was introduced in PR #1284 as a way of simplifying the JSON response rendering (at that time only used in the JSON response for the "get all entities" operations). In addition, the class allows to rendering logic in a common place, which is interesting as it allows to solve problems such the one described in #1172 in a single point.

This issue is about extending the usage of JsonHelper to the other NGSIv2 types (and adapt the JsonHelper class in the process, if needed). As a result, we should see a reduction of the length and complexity of the current render() methods, as the start to use addRaw(), addString().

Effort: 5 man day

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions