What to use in the face of deprecation of the scala.util.parsing.json._ package? -


how solve scala problem? have warning json usage in project:

object json in package json depricated. object removed.

import scala.util.parsing.json._ json.parseraw("[{'a':'b'},{'c':'d'}]") 

usually, means piece of functionality has been superseded implementation use of preferred on old 1 , question means op lazy google docs. true in case of libraries in java language, treats backward compatibility (to point becomes pain some). scala ecosystem not strict in regard , upgrading newer version of language means can different api or binary incompabilities. see scala: binary incompatibility between releases. not comment against scala. there reasons these incompatibilities exist.

however, must admit documentation scala.util.parsing.json not contain information regarding recommended replacement functionality whatsoever. took me quite while dig barely resembles clear statement of recommended replacement is.

there seems have been lot of discussion in community point , repercussions of deprecation. recommend reading this thread in scala-users group if you're interested.

the quoted reasons deprecation seem around poor performance , thread safety.

the deprecation done part of this jira issue , use of different parsers recommended in closing comment of this related task not completed due deprecation.

alternatives include:

to answer question. warning, code should not break until object removed. however, if new bugs found in functionality, aren't going fixed. code can break if upgrade newer version of scala has packages removed (version 2.11.0 , above, according documentation)


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -