Changed the implementation of a few functions. It will be more efficient this way since the json string object is not re-parsed for each iteraion in the foldl calls
Now uses lib_json:set_attrs instead, which takes away the need for two functions.
Removed support for a specific call in lib_json, so the test case is also removed.