Update JSONTool usage in velocity code

Description

JSONTool.parse was made deprecated recently, however it is still used in a few places resulting in PT log being spammed with messages like

`2016-12-13 10:56:40,824 http://localhost:7777/data/P0000001 WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [org.xwiki.velocity.tools.JSONTool.parse] in 20:xwiki:data.P0000001@13,33`

According to "`parseToJSONArray` or `parseToJSONObject` should be used instead; @a.gvo introduced those"

Environment

None

Status

Assignee

Alina Gvo

Reporter

Andrew Misyura

Labels

None

External issue ID

None

External issue ID

None

Components

Fix versions

Priority

Medium