Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.4.0] behaviour of the Json.deepMerge method is different than in playframework 2.3.x #4633

@limuhob

Description

@limuhob

Hi,

playframework 2.4.0 has different behaviour of Json.deepMerge method. This code:

val js1 = Json.parse( """{"property1":"x", "data":["a"]}""")
val js2 = Json.parse( """{"property1":"x", "data":["a"]}""")
println(js1.as[JsObject].deepMerge(js2.as[JsObject]))

prints in play 2.4.0:

{"property1":"x","data":["a", "a"]} 

However in play 2.3.x it prints:

{"property1":"x","data":["a"]}

Because that some JSON transformation has different result. See my another issue:

#4622

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions